home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Documentation / develop / develop Issue 17 / develop 17 < prev   
MacBinary  |  1994-10-25  |  4.2 MB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: develop 17

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Mon Apr 18 13:52:05 1994, modified Tue Oct 25 04:35:35 1994, creator 'HLX2', type 'ONLN', 4382880 bytes "develop 17" , at 0x42e120 44301 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 64 65 76 65 6c 6f | 70 20 31 37 00 00 00 00 |..develo|p 17....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 42 e0 a0 00 | 00 ad 0d a9 d8 79 45 aa |....B...|.....yE.|
|00000060| d2 73 d7 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.s......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 79 07 00 00 |........|....y...|
|00000080| 64 65 76 65 6c 6f 70 0d | 54 68 65 20 41 70 70 6c |develop.|The Appl|
|00000090| 65 20 54 65 63 68 6e 69 | 63 61 6c 20 4a 6f 75 72 |e Techni|cal Jour|
|000000a0| 6e 61 6c 0d 09 55 53 49 | 4e 47 20 50 52 4f 54 4f |nal..USI|NG PROTO|
|000000b0| 20 54 45 4d 50 4c 41 54 | 45 53 20 4f 4e 20 54 48 | TEMPLAT|ES ON TH|
|000000c0| 45 20 4e 45 57 54 4f 4e | 0d 53 54 41 4e 44 41 4c |E NEWTON|.STANDAL|
|000000d0| 4f 4e 45 20 43 4f 44 45 | 20 0d 4f 4e 20 50 4f 57 |ONE CODE| .ON POW|
|000000e0| 45 52 50 43 0d 44 45 42 | 55 47 47 49 4e 47 20 4f |ERPC.DEB|UGGING O|
|000000f0| 4e 20 50 4f 57 45 52 50 | 43 0d 43 4f 4e 43 55 52 |N POWERP|C.CONCUR|
|00000100| 52 45 4e 54 20 50 52 4f | 47 52 41 4d 4d 49 4e 47 |RENT PRO|GRAMMING|
|00000110| 20 0d 57 49 54 48 20 54 | 48 45 20 54 48 52 45 41 | .WITH T|HE THREA|
|00000120| 44 20 4d 41 4e 41 47 45 | 52 0d 57 49 4e 44 4f 57 |D MANAGE|R.WINDOW|
|00000130| 20 5a 4f 4f 4d 49 4e 47 | 0d 54 52 41 43 4b 49 4e | ZOOMING|.TRACKIN|
|00000140| 47 20 0d 51 55 49 43 4b | 44 52 41 57 20 47 58 20 |G .QUICK|DRAW GX |
|00000150| 4d 45 53 53 41 47 45 53 | 0d 43 52 4f 53 53 2d 50 |MESSAGES|.CROSS-P|
|00000160| 4c 41 54 46 4f 52 4d 20 | 43 4f 4d 50 41 54 49 42 |LATFORM |COMPATIB|
|00000170| 49 4c 49 54 59 20 41 4e | 44 20 4d 55 4c 54 49 50 |ILITY AN|D MULTIP|
|00000180| 4c 45 2d 4d 4f 56 49 45 | 20 0d 46 49 4c 45 53 0d |LE-MOVIE| .FILES.|
|00000190| 54 45 4e 20 54 49 50 53 | 20 46 4f 52 20 0d 47 41 |TEN TIPS| FOR .GA|
|000001a0| 4d 45 20 44 45 56 45 4c | 4f 50 45 52 53 0d 4b 4f |ME DEVEL|OPERS.KO|
|000001b0| 4e 20 26 20 42 41 4c d5 | 53 0d 50 55 5a 5a 4c 45 |N & BAL.|S.PUZZLE|
|000001c0| 20 50 41 47 45 0d 48 49 | 53 54 4f 52 59 20 4f 46 | PAGE.HI|STORY OF|
|000001d0| 20 54 48 45 20 44 4f 47 | 43 4f 57 0d 4d 41 43 49 | THE DOG|COW.MACI|
|000001e0| 4e 54 4f 53 48 20 51 20 | 26 20 41 0d f0 0d 49 73 |NTOSH Q |& A...Is|
|000001f0| 73 75 65 20 31 37 20 20 | 20 4d 61 72 63 68 20 31 |sue 17 | March 1|
|00000200| 39 39 34 0d 41 70 70 6c | 65 20 43 6f 6d 70 75 74 |994.Appl|e Comput|
|00000210| 65 72 2c 20 49 6e 63 2e | 09 0d 41 70 70 6c 65 20 |er, Inc.|..Apple |
|00000220| 43 6f 6d 70 75 74 65 72 | 2c 20 49 6e 63 2e 0d 09 |Computer|, Inc...|
|00000230| 64 65 76 65 6c 6f 70 2c | 20 54 68 65 20 41 70 70 |develop,| The App|
|00000240| 6c 65 20 54 65 63 68 6e | 69 63 61 6c 20 4a 6f 75 |le Techn|ical Jou|
|00000250| 72 6e 61 6c 2c 20 61 20 | 71 75 61 72 74 65 72 6c |rnal, a |quarterl|
|00000260| 79 20 70 75 62 6c 69 63 | 61 74 69 6f 6e 20 6f 66 |y public|ation of|
|00000270| 20 41 70 70 6c 65 20 43 | 6f 6d 70 75 74 65 72 d5 | Apple C|omputer.|
|00000280| 73 20 44 65 76 65 6c 6f | 70 65 72 20 50 72 65 73 |s Develo|per Pres|
|00000290| 73 20 67 72 6f 75 70 2c | 20 69 73 20 70 75 62 6c |s group,| is publ|
|000002a0| 69 73 68 65 64 20 69 6e | 20 4d 61 72 63 68 2c 20 |ished in| March, |
|000002b0| 4a 75 6e 65 2c 20 53 65 | 70 74 65 6d 62 65 72 2c |June, Se|ptember,|
|000002c0| 20 61 6e 64 20 44 65 63 | 65 6d 62 65 72 2e 0d 54 | and Dec|ember..T|
|000002d0| 68 69 73 20 69 73 73 75 | 65 d5 73 20 43 44 2e 20 |his issu|e.s CD. |
|000002e0| 54 68 65 20 64 65 76 65 | 6c 6f 70 20 42 6f 6f 6b |The deve|lop Book|
|000002f0| 6d 61 72 6b 20 43 44 20 | 28 6f 72 20 74 68 65 20 |mark CD |(or the |
|00000300| 44 65 76 65 6c 6f 70 65 | 72 20 43 44 20 53 65 72 |Develope|r CD Ser|
|00000310| 69 65 73 20 64 69 73 63 | 2c 20 52 65 66 65 72 65 |ies disc|, Refere|
|00000320| 6e 63 65 20 4c 69 62 72 | 61 72 79 20 65 64 69 74 |nce Libr|ary edit|
|00000330| 69 6f 6e 29 20 66 6f 72 | 20 4d 61 72 63 68 20 31 |ion) for| March 1|
|00000340| 39 39 34 20 6f 72 20 6c | 61 74 65 72 20 63 6f 6e |994 or l|ater con|
|00000350| 74 61 69 6e 73 20 74 68 | 69 73 20 69 73 73 75 65 |tains th|is issue|
|00000360| 20 61 6e 64 20 61 6c 6c | 20 62 61 63 6b 20 69 73 | and all| back is|
|00000370| 73 75 65 73 20 6f 66 20 | 64 65 76 65 6c 6f 70 20 |sues of |develop |
|00000380| 61 6c 6f 6e 67 20 77 69 | 74 68 20 74 68 65 20 63 |along wi|th the c|
|00000390| 6f 64 65 20 74 68 61 74 | 20 74 68 65 20 61 72 74 |ode that| the art|
|000003a0| 69 63 6c 65 73 20 64 65 | 73 63 72 69 62 65 2e 20 |icles de|scribe. |
|000003b0| 54 68 65 20 64 65 76 65 | 6c 6f 70 20 69 73 73 75 |The deve|lop issu|
|000003c0| 65 73 20 61 6e 64 20 63 | 6f 64 65 20 61 72 65 20 |es and c|ode are |
|000003d0| 61 6c 73 6f 20 61 76 61 | 69 6c 61 62 6c 65 20 6f |also ava|ilable o|
|000003e0| 6e 20 41 70 70 6c 65 4c | 69 6e 6b 20 61 6e 64 20 |n AppleL|ink and |
|000003f0| 76 69 61 20 61 6e 6f 6e | 79 6d 6f 75 73 20 66 74 |via anon|ymous ft|
|00000400| 70 20 6f 6e 20 66 74 70 | 2e 61 70 70 6c 65 2e 63 |p on ftp|.apple.c|
|00000410| 6f 6d 2e 20 4e 6f 74 65 | 20 74 68 61 74 20 73 6f |om. Note| that so|
|00000420| 6d 65 20 73 6f 66 74 77 | 61 72 65 20 61 6e 64 20 |me softw|are and |
|00000430| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 20 72 65 |document|ation re|
|00000440| 66 65 72 72 65 64 20 74 | 6f 20 61 73 20 62 65 69 |ferred t|o as bei|
|00000450| 6e 67 20 6f 6e 20 74 68 | 69 73 20 69 73 73 75 65 |ng on th|is issue|
|00000460| d5 73 20 43 44 20 6d 61 | 79 20 62 65 20 6c 6f 63 |.s CD ma|y be loc|
|00000470| 61 74 65 64 20 6f 6e 20 | 74 68 65 20 54 6f 6f 6c |ated on |the Tool|
|00000480| 20 43 68 65 73 74 20 65 | 64 69 74 69 6f 6e 20 72 | Chest e|dition r|
|00000490| 61 74 68 65 72 20 74 68 | 61 6e 20 74 68 65 20 52 |ather th|an the R|
|000004a0| 65 66 65 72 65 6e 63 65 | 20 4c 69 62 72 61 72 79 |eference| Library|
|000004b0| 20 65 64 69 74 69 6f 6e | 20 6f 66 20 74 68 65 20 | edition| of the |
|000004c0| 44 65 76 65 6c 6f 70 65 | 72 20 43 44 20 53 65 72 |Develope|r CD Ser|
|000004d0| 69 65 73 20 64 69 73 63 | 2e 0d 4d 61 63 69 6e 74 |ies disc|..Macint|
|000004e0| 6f 73 68 20 54 65 63 68 | 6e 69 63 61 6c 20 4e 6f |osh Tech|nical No|
|000004f0| 74 65 73 2e 20 57 68 65 | 72 65 20 72 65 66 65 72 |tes. Whe|re refer|
|00000500| 65 6e 63 65 73 20 74 6f | 20 4d 61 63 69 6e 74 6f |ences to| Macinto|
|00000510| 73 68 20 54 65 63 68 6e | 69 63 61 6c 20 4e 6f 74 |sh Techn|ical Not|
|00000520| 65 73 20 69 6e 20 64 65 | 76 65 6c 6f 70 20 61 72 |es in de|velop ar|
|00000530| 65 20 66 6f 6c 6c 6f 77 | 65 64 20 62 79 20 73 6f |e follow|ed by so|
|00000540| 6d 65 74 68 69 6e 67 20 | 6c 69 6b 65 20 d2 28 4d |mething |like .(M|
|00000550| 65 6d 6f 72 79 20 31 33 | 29 2c d3 20 74 68 69 73 |emory 13|),. this|
|00000560| 20 69 6e 64 69 63 61 74 | 65 73 20 74 68 65 20 63 | indicat|es the c|
|00000570| 61 74 65 67 6f 72 79 20 | 61 6e 64 20 6e 75 6d 62 |ategory |and numb|
|00000580| 65 72 20 6f 66 20 74 68 | 65 20 4e 6f 74 65 20 6f |er of th|e Note o|
|00000590| 6e 20 74 68 69 73 20 69 | 73 73 75 65 d5 73 20 43 |n this i|ssue.s C|
|000005a0| 44 2e 0d 45 2d 6d 61 69 | 6c 20 61 64 64 72 65 73 |D..E-mai|l addres|
|000005b0| 73 65 73 2e 20 4d 6f 73 | 74 20 65 2d 6d 61 69 6c |ses. Mos|t e-mail|
|000005c0| 20 61 64 64 72 65 73 73 | 65 73 20 6d 65 6e 74 69 | address|es menti|
|000005d0| 6f 6e 65 64 20 69 6e 20 | 64 65 76 65 6c 6f 70 20 |oned in |develop |
|000005e0| 61 72 65 20 41 70 70 6c | 65 4c 69 6e 6b 20 61 64 |are Appl|eLink ad|
|000005f0| 64 72 65 73 73 65 73 3b | 0d 74 6f 20 63 6f 6e 76 |dresses;|.to conv|
|00000600| 65 72 74 20 61 6e 20 41 | 70 70 6c 65 4c 69 6e 6b |ert an A|ppleLink|
|00000610| 20 61 64 64 72 65 73 73 | 20 74 6f 20 61 6e 20 49 | address| to an I|
|00000620| 6e 74 65 72 6e 65 74 20 | 61 64 64 72 65 73 73 2c |nternet |address,|
|00000630| 20 61 70 70 65 6e 64 20 | d2 40 61 70 70 6c 65 6c | append |.@applel|
|00000640| 69 6e 6b 2e 61 70 70 6c | 65 2e 63 6f 6d d3 20 74 |ink.appl|e.com. t|
|00000650| 6f 20 69 74 2e 20 46 6f | 72 20 65 78 61 6d 70 6c |o it. Fo|r exampl|
|00000660| 65 2c 20 44 45 56 45 4c | 4f 50 20 6f 6e 20 41 70 |e, DEVEL|OP on Ap|
|00000670| 70 6c 65 4c 69 6e 6b 20 | 63 6f 6e 76 65 72 74 73 |pleLink |converts|
|00000680| 20 74 6f 20 64 65 76 65 | 6c 6f 70 40 61 70 70 6c | to deve|lop@appl|
|00000690| 65 6c 69 6e 6b 2e 61 70 | 70 6c 65 2e 63 6f 6d 20 |elink.ap|ple.com |
|000006a0| 6f 6e 20 74 68 65 20 49 | 6e 74 65 72 6e 65 74 2e |on the I|nternet.|
|000006b0| 20 54 6f 20 63 6f 6e 76 | 65 72 74 20 61 20 4e 65 | To conv|ert a Ne|
|000006c0| 77 74 6f 6e 4d 61 69 6c | 20 61 64 64 72 65 73 73 |wtonMail| address|
|000006d0| 20 74 6f 20 61 6e 20 49 | 6e 74 65 72 6e 65 74 20 | to an I|nternet |
|000006e0| 61 64 64 72 65 73 73 2c | 20 61 70 70 65 6e 64 20 |address,| append |
|000006f0| d2 40 6f 6e 6c 69 6e 65 | 2e 61 70 70 6c 65 2e 63 |.@online|.apple.c|
|00000700| 6f 6d d3 20 74 6f 20 69 | 74 2e 0d 09 45 20 64 20 |om. to i|t...E d |
|00000710| 69 20 74 20 6f 20 72 20 | 69 20 61 20 6c 20 20 53 |i t o r |i a l S|
|00000720| 20 54 20 41 20 46 20 46 | 0d 45 64 69 74 6f 72 2d | T A F F|.Editor-|
|00000730| 69 6e 2d 43 68 65 65 6b | 20 20 43 61 72 6f 6c 69 |in-Cheek| Caroli|
|00000740| 6e 65 20 52 6f 73 65 0d | 54 65 63 68 6e 69 63 61 |ne Rose.|Technica|
|00000750| 6c 20 42 75 63 6b 73 74 | 6f 70 70 65 72 20 20 44 |l Buckst|opper D|
|00000760| 61 76 65 20 4a 6f 68 6e | 73 6f 6e 0d 4f 75 72 20 |ave John|son.Our |
|00000770| 42 6f 73 73 20 20 47 72 | 65 67 20 4a 6f 73 77 69 |Boss Gr|eg Joswi|
|00000780| 61 6b 0d 48 69 73 20 42 | 6f 73 73 20 20 44 65 6e |ak.His B|oss Den|
|00000790| 6e 69 73 20 4d 61 74 74 | 68 65 77 73 0d 52 65 76 |nis Matt|hews.Rev|
|000007a0| 69 65 77 20 42 6f 61 72 | 64 20 20 50 65 74 65 20 |iew Boar|d Pete |
|000007b0| 28 d2 4c 75 6b 65 d3 29 | 20 41 6c 65 78 61 6e 64 |(.Luke.)| Alexand|
|000007c0| 65 72 2c 20 0d 4a 69 6d | 20 52 65 65 6b 65 73 2c |er, .Jim| Reekes,|
|000007d0| 20 42 72 79 61 6e 20 4b | 2e 20 28 d2 42 65 61 6b | Bryan K|. (.Beak|
|000007e0| 65 72 d3 29 20 52 65 73 | 73 6c 65 72 2c 20 4c 61 |er.) Res|sler, La|
|000007f0| 72 72 79 20 52 6f 73 65 | 6e 73 74 65 69 6e 2c 20 |rry Rose|nstein, |
|00000800| 41 6e 64 79 20 53 68 65 | 62 61 6e 6f 77 2c 20 47 |Andy She|banow, G|
|00000810| 72 65 67 67 20 57 69 6c | 6c 69 61 6d 73 2c 20 0d |regg Wil|liams, .|
|00000820| 44 65 61 6e 20 59 75 0d | 4d 61 6e 61 67 69 6e 67 |Dean Yu.|Managing|
|00000830| 20 45 64 69 74 6f 72 20 | 20 43 79 6e 74 68 69 61 | Editor | Cynthia|
|00000840| 20 4a 61 73 70 65 72 0d | 43 6f 6e 74 72 69 62 75 | Jasper.|Contribu|
|00000850| 74 69 6e 67 20 45 64 69 | 74 6f 72 73 20 20 4c 6f |ting Edi|tors Lo|
|00000860| 72 72 61 69 6e 65 20 41 | 6e 64 65 72 73 6f 6e 2c |rraine A|nderson,|
|00000870| 0d 54 6f 6e 69 20 48 61 | 73 6b 65 6c 6c 2c 20 4a |.Toni Ha|skell, J|
|00000880| 75 64 79 20 48 65 6c 66 | 61 6e 64 2c 20 45 6c 61 |udy Helf|and, Ela|
|00000890| 69 6e 65 20 4d 65 79 65 | 72 2c 20 0d 52 65 62 65 |ine Meye|r, .Rebe|
|000008a0| 63 63 61 20 50 65 70 70 | 65 72 0d 49 6e 64 65 78 |cca Pepp|er.Index|
|000008b0| 65 72 20 20 4d 61 72 63 | 20 53 61 76 61 67 65 0d |er Marc| Savage.|
|000008c0| 41 20 52 20 54 20 20 26 | 20 20 50 20 52 20 4f 20 |A R T &| P R O |
|000008d0| 44 20 55 20 43 20 54 20 | 49 20 4f 20 4e 0d 50 72 |D U C T |I O N.Pr|
|000008e0| 6f 64 75 63 74 69 6f 6e | 2f 41 72 74 20 44 69 72 |oduction|/Art Dir|
|000008f0| 65 63 74 6f 72 20 20 44 | 69 61 6e 65 20 57 69 6c |ector D|iane Wil|
|00000900| 63 6f 78 0d 54 65 63 68 | 6e 69 63 61 6c 20 49 6c |cox.Tech|nical Il|
|00000910| 6c 75 73 74 72 61 74 69 | 6f 6e 20 20 53 68 61 77 |lustrati|on Shaw|
|00000920| 6e 20 4d 6f 72 6e 69 6e | 67 73 74 61 72 2c 0d 4a |n Mornin|gstar,.J|
|00000930| 6f 68 6e 20 52 79 61 6e | 20 0d 46 6f 72 6d 61 74 |ohn Ryan| .Format|
|00000940| 74 69 6e 67 20 20 46 6f | 72 62 65 73 20 4d 69 6c |ting Fo|rbes Mil|
|00000950| 6c 20 50 72 65 73 73 0d | 46 69 6c 6d 20 53 65 72 |l Press.|Film Ser|
|00000960| 76 69 63 65 73 20 20 41 | 70 74 6f 73 20 50 6f 73 |vices A|ptos Pos|
|00000970| 74 2c 20 49 6e 63 2e 0d | 50 72 65 70 72 65 73 73 |t, Inc..|Prepress|
|00000980| 20 50 72 6f 64 75 63 74 | 69 6f 6e 20 20 50 72 65 | Product|ion Pre|
|00000990| 50 72 65 73 73 20 41 73 | 73 65 6d 62 6c 79 0d 50 |Press As|sembly.P|
|000009a0| 72 69 6e 74 69 6e 67 20 | 20 57 6f 6c 66 65 72 20 |rinting | Wolfer |
|000009b0| 50 72 69 6e 74 69 6e 67 | 20 43 6f 6d 70 61 6e 79 |Printing| Company|
|000009c0| 2c 20 49 6e 63 2e 0d 50 | 68 6f 74 6f 67 72 61 70 |, Inc..P|hotograp|
|000009d0| 68 79 20 20 53 68 61 72 | 6f 6e 20 42 65 61 6c 73 |hy Shar|on Beals|
|000009e0| 0d 43 6f 76 65 72 20 49 | 6c 6c 75 73 74 72 61 74 |.Cover I|llustrat|
|000009f0| 69 6f 6e 20 20 4d 61 72 | 6b 20 4a 65 6e 6b 69 6e |ion Mar|k Jenkin|
|00000a00| 73 20 6f 66 20 52 75 63 | 6b 65 72 20 0d 48 75 67 |s of Ruc|ker .Hug|
|00000a10| 67 69 6e 73 20 44 65 73 | 69 67 6e 0d 4f 6e 6c 69 |gins Des|ign.Onli|
|00000a20| 6e 65 20 50 72 6f 64 75 | 63 74 69 6f 6e 20 20 46 |ne Produ|ction F|
|00000a30| 6f 72 62 65 73 20 4d 69 | 6c 6c 20 50 72 65 73 73 |orbes Mi|ll Press|
|00000a40| 0d 09 0d 0d 09 45 44 49 | 54 4f 52 49 41 4c 09 55 |.....EDI|TORIAL.U|
|00000a50| 73 65 72 20 69 6e 74 65 | 72 66 61 63 65 20 65 78 |ser inte|rface ex|
|00000a60| 63 65 73 73 65 73 2e 20 | 20 20 32 0d 09 4c 45 54 |cesses. | 2..LET|
|00000a70| 54 45 52 53 09 46 6c 6f | 61 74 69 6e 67 20 77 69 |TERS.Flo|ating wi|
|00000a80| 6e 64 6f 77 73 20 63 6f | 72 72 65 63 74 69 6f 6e |ndows co|rrection|
|00000a90| 73 2e 20 20 20 34 0d 09 | 41 52 54 49 43 4c 45 53 |s. 4..|ARTICLES|
|00000aa0| 09 55 73 69 6e 67 20 50 | 72 6f 74 6f 20 54 65 6d |.Using P|roto Tem|
|00000ab0| 70 6c 61 74 65 73 20 6f | 6e 20 74 68 65 20 4e 65 |plates o|n the Ne|
|00000ac0| 77 74 6f 6e 20 20 62 79 | 20 48 61 72 72 79 20 52 |wton by| Harry R|
|00000ad0| 2e 20 43 68 65 73 6c 65 | 79 20 20 20 46 6f 72 20 |. Chesle|y For |
|00000ae0| 4e 65 77 74 6f 6e 20 64 | 65 76 65 6c 6f 70 65 72 |Newton d|eveloper|
|00000af0| 73 2c 20 61 20 73 61 6d | 70 6c 65 20 67 61 6d 65 |s, a sam|ple game|
|00000b00| 20 74 68 61 74 20 75 73 | 65 73 20 70 72 6f 74 6f | that us|es proto|
|00000b10| 20 74 65 6d 70 6c 61 74 | 65 73 20 74 6f 20 67 6f | templat|es to go|
|00000b20| 6f 64 20 65 66 66 65 63 | 74 3b 20 66 6f 72 20 65 |od effec|t; for e|
|00000b30| 76 65 72 79 6f 6e 65 20 | 65 6c 73 65 2c 20 61 20 |veryone |else, a |
|00000b40| 66 6c 61 76 6f 72 20 6f | 66 20 77 68 61 74 20 4e |flavor o|f what N|
|00000b50| 65 77 74 6f 6e 20 64 65 | 76 65 6c 6f 70 6d 65 6e |ewton de|velopmen|
|00000b60| 74 20 69 73 20 6c 69 6b | 65 2e 20 20 20 35 0d 09 |t is lik|e. 5..|
|00000b70| 53 74 61 6e 64 61 6c 6f | 6e 65 20 43 6f 64 65 20 |Standalo|ne Code |
|00000b80| 6f 6e 20 50 6f 77 65 72 | 50 43 20 20 62 79 20 54 |on Power|PC by T|
|00000b90| 69 6d 20 4e 69 63 68 6f | 6c 73 20 20 20 53 74 61 |im Nicho|ls Sta|
|00000ba0| 6e 64 61 6c 6f 6e 65 20 | 63 6f 64 65 20 69 73 20 |ndalone |code is |
|00000bb0| 62 65 74 74 65 72 20 61 | 6e 64 20 65 61 73 69 65 |better a|nd easie|
|00000bc0| 72 20 74 68 61 6e 20 65 | 76 65 72 20 62 65 66 6f |r than e|ver befo|
|00000bd0| 72 65 20 69 6e 20 74 68 | 65 20 50 6f 77 65 72 50 |re in th|e PowerP|
|00000be0| 43 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 2e 20 20 |C enviro|nment. |
|00000bf0| 20 33 36 0d 09 44 65 62 | 75 67 67 69 6e 67 20 6f | 36..Deb|ugging o|
|00000c00| 6e 20 50 6f 77 65 72 50 | 43 20 20 62 79 20 44 61 |n PowerP|C by Da|
|00000c10| 76 65 20 46 61 6c 6b 65 | 6e 62 75 72 67 20 61 6e |ve Falke|nburg an|
|00000c20| 64 20 42 72 69 61 6e 20 | 54 6f 70 70 69 6e 67 20 |d Brian |Topping |
|00000c30| 20 20 49 74 d5 73 20 61 | 20 77 68 6f 6c 65 20 6e | It.s a| whole n|
|00000c40| 65 77 20 77 6f 72 6c 64 | 20 69 6e 20 74 68 65 72 |ew world| in ther|
|00000c50| 65 2c 20 62 75 74 20 79 | 6f 75 72 20 68 61 72 64 |e, but y|our hard|
|00000c60| 2d 77 6f 6e 20 64 65 62 | 75 67 67 69 6e 67 20 73 |-won deb|ugging s|
|00000c70| 6b 69 6c 6c 73 20 73 74 | 69 6c 6c 20 77 6f 72 6b |kills st|ill work|
|00000c80| 2e 20 20 20 35 31 0d 09 | 43 6f 6e 63 75 72 72 65 |. 51..|Concurre|
|00000c90| 6e 74 20 50 72 6f 67 72 | 61 6d 6d 69 6e 67 20 57 |nt Progr|amming W|
|00000ca0| 69 74 68 20 74 68 65 20 | 54 68 72 65 61 64 20 4d |ith the |Thread M|
|00000cb0| 61 6e 61 67 65 72 20 20 | 62 79 20 45 72 69 63 20 |anager |by Eric |
|00000cc0| 41 6e 64 65 72 73 6f 6e | 20 61 6e 64 20 42 72 61 |Anderson| and Bra|
|00000cd0| 64 20 50 6f 73 74 20 20 | 20 57 69 74 68 20 62 6f |d Post | With bo|
|00000ce0| 74 68 20 63 6f 6f 70 65 | 72 61 74 69 76 65 20 61 |th coope|rative a|
|00000cf0| 6e 64 20 70 72 65 65 6d | 70 74 69 76 65 20 74 68 |nd preem|ptive th|
|00000d00| 72 65 61 64 73 2c 20 74 | 68 65 20 70 6f 73 73 69 |reads, t|he possi|
|00000d10| 62 69 6c 69 74 69 65 73 | 20 70 72 6f 76 69 64 65 |bilities| provide|
|00000d20| 64 20 62 79 20 74 68 65 | 20 6e 65 77 20 54 68 72 |d by the| new Thr|
|00000d30| 65 61 64 20 4d 61 6e 61 | 67 65 72 20 61 72 65 20 |ead Mana|ger are |
|00000d40| 6e 65 61 72 6c 79 20 65 | 6e 64 6c 65 73 73 2e 20 |nearly e|ndless. |
|00000d50| 20 20 37 33 0d 09 54 68 | 65 20 5a 65 6e 20 6f 66 | 73..Th|e Zen of|
|00000d60| 20 57 69 6e 64 6f 77 20 | 5a 6f 6f 6d 69 6e 67 20 | Window |Zooming |
|00000d70| 20 62 79 20 44 65 61 6e | 20 59 75 20 20 20 45 76 | by Dean| Yu Ev|
|00000d80| 65 72 79 62 6f 64 79 20 | 64 6f 65 73 20 69 74 2c |erybody |does it,|
|00000d90| 20 62 75 74 20 6d 61 6e | 79 20 73 74 69 6c 6c 20 | but man|y still |
|00000da0| 64 6f 6e d5 74 20 64 6f | 20 69 74 20 72 69 67 68 |don.t do| it righ|
|00000db0| 74 2e 20 44 65 61 6e 20 | 68 61 73 20 73 6f 6d 65 |t. Dean |has some|
|00000dc0| 20 63 6f 64 65 20 74 6f | 20 68 65 6c 70 20 79 6f | code to| help yo|
|00000dd0| 75 20 6f 75 74 2e 20 20 | 20 31 30 31 0d 09 43 4f |u out. | 101..CO|
|00000de0| 4c 55 4d 4e 53 09 50 72 | 69 6e 74 20 48 69 6e 74 |LUMNS.Pr|int Hint|
|00000df0| 73 3a 20 54 72 61 63 6b | 69 6e 67 20 51 75 69 63 |s: Track|ing Quic|
|00000e00| 6b 44 72 61 77 20 47 58 | 20 4d 65 73 73 61 67 65 |kDraw GX| Message|
|00000e10| 73 20 20 62 79 20 50 65 | 74 65 20 28 d2 4c 75 6b |s by Pe|te (.Luk|
|00000e20| 65 d3 29 20 41 6c 65 78 | 61 6e 64 65 72 20 20 20 |e.) Alex|ander |
|00000e30| 4d 65 73 73 61 67 65 57 | 61 74 63 68 65 72 20 6c |MessageW|atcher l|
|00000e40| 65 74 73 20 79 6f 75 20 | 73 70 79 20 6f 6e 20 51 |ets you |spy on Q|
|00000e50| 75 69 63 6b 44 72 61 77 | 20 47 58 20 70 72 69 6e |uickDraw| GX prin|
|00000e60| 74 69 6e 67 2e 20 20 20 | 33 32 0d 09 54 68 65 20 |ting. |32..The |
|00000e70| 56 65 74 65 72 61 6e 20 | 4e 65 6f 70 68 79 74 65 |Veteran |Neophyte|
|00000e80| 3a 20 57 68 79 20 57 65 | 20 44 6f 20 49 74 20 20 |: Why We| Do It |
|00000e90| 62 79 20 44 61 76 65 20 | 4a 6f 68 6e 73 6f 6e 20 |by Dave |Johnson |
|00000ea0| 20 20 57 68 79 20 64 6f | 20 70 65 6f 70 6c 65 20 | Why do| people |
|00000eb0| 6c 69 6b 65 20 74 6f 20 | 70 72 6f 67 72 61 6d 20 |like to |program |
|00000ec0| 63 6f 6d 70 75 74 65 72 | 73 3f 20 54 68 65 20 72 |computer|s? The r|
|00000ed0| 65 73 75 6c 74 73 20 6f | 66 20 61 6e 20 61 64 20 |esults o|f an ad |
|00000ee0| 68 6f 63 20 73 75 72 76 | 65 79 2e 20 20 20 34 38 |hoc surv|ey. 48|
|00000ef0| 0d 09 53 6f 6d 65 77 68 | 65 72 65 20 69 6e 20 51 |..Somewh|ere in Q|
|00000f00| 75 69 63 6b 54 69 6d 65 | 3a 20 43 72 6f 73 73 2d |uickTime|: Cross-|
|00000f10| 50 6c 61 74 66 6f 72 6d | 20 43 6f 6d 70 61 74 69 |Platform| Compati|
|00000f20| 62 69 6c 69 74 79 20 61 | 6e 64 20 4d 75 6c 74 69 |bility a|nd Multi|
|00000f30| 70 6c 65 2d 4d 6f 76 69 | 65 20 46 69 6c 65 73 20 |ple-Movi|e Files |
|00000f40| 20 62 79 20 4a 6f 68 6e | 20 57 61 6e 67 20 20 20 | by John| Wang |
|00000f50| 54 68 65 20 74 69 74 6c | 65 20 73 61 79 73 20 69 |The titl|e says i|
|00000f60| 74 20 61 6c 6c 2e 20 20 | 20 37 30 0d 09 56 69 65 |t all. | 70..Vie|
|00000f70| 77 20 46 72 6f 6d 20 74 | 68 65 20 4c 65 64 67 65 |w From t|he Ledge|
|00000f80| 20 20 62 79 20 54 61 6f | 20 4a 6f 6e 65 73 20 20 | by Tao| Jones |
|00000f90| 20 41 6d 61 7a 69 6e 67 | 20 61 64 76 69 63 65 20 | Amazing| advice |
|00000fa0| 61 62 6f 75 74 20 61 77 | 66 75 6c 20 61 6c 6c 69 |about aw|ful alli|
|00000fb0| 65 73 2e 20 20 20 39 39 | 0d 09 54 65 6e 20 54 69 |es. 99|..Ten Ti|
|00000fc0| 70 73 20 66 6f 72 20 47 | 61 6d 65 20 44 65 76 65 |ps for G|ame Deve|
|00000fd0| 6c 6f 70 65 72 73 20 20 | 62 79 20 42 72 69 67 68 |lopers |by Brigh|
|00000fe0| 61 6d 20 53 74 65 76 65 | 6e 73 20 20 20 54 68 69 |am Steve|ns Thi|
|00000ff0| 6e 67 73 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 6b |ngs you |should k|
|00001000| 6e 6f 77 20 69 66 20 79 | 6f 75 20 77 61 6e 74 20 |now if y|ou want |
|00001010| 74 6f 20 77 72 69 74 65 | 20 67 61 6d 65 73 20 66 |to write| games f|
|00001020| 6f 72 20 74 68 65 20 4d | 61 63 69 6e 74 6f 73 68 |or the M|acintosh|
|00001030| 20 d1 20 6f 72 20 65 76 | 65 6e 20 69 66 20 79 6f | . or ev|en if yo|
|00001040| 75 20 64 6f 6e d5 74 2e | 20 20 20 31 31 34 0d 09 |u don.t.| 114..|
|00001050| 4b 4f 4e 20 26 20 42 41 | 4c d5 73 20 50 75 7a 7a |KON & BA|L.s Puzz|
|00001060| 6c 65 20 50 61 67 65 3a | 20 57 68 65 6e 20 4d 61 |le Page:| When Ma|
|00001070| 70 73 20 47 6f 20 42 61 | 64 20 20 62 79 20 4b 6f |ps Go Ba|d by Ko|
|00001080| 6e 73 74 61 6e 74 69 6e | 20 4f 74 68 6d 65 72 20 |nstantin| Othmer |
|00001090| 61 6e 64 20 42 72 75 63 | 65 20 4c 65 61 6b 20 20 |and Bruc|e Leak |
|000010a0| 20 4d 6f 72 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 | More Ma|cintosh |
|000010b0| 6f 72 69 65 6e 74 65 65 | 72 69 6e 67 20 77 69 74 |orientee|ring wit|
|000010c0| 68 20 4b 4f 4e 20 61 6e | 64 20 42 41 4c 2e 20 20 |h KON an|d BAL. |
|000010d0| 20 31 33 30 0d 09 48 69 | 73 74 6f 72 79 20 6f 66 | 130..Hi|story of|
|000010e0| 20 74 68 65 20 44 6f 67 | 63 6f 77 3a 20 50 61 72 | the Dog|cow: Par|
|000010f0| 74 20 31 20 20 62 79 20 | 4d 61 72 6b 20 28 d2 54 |t 1 by |Mark (.T|
|00001100| 68 65 20 52 65 64 d3 29 | 20 48 61 72 6c 61 6e 20 |he Red.)| Harlan |
|00001110| 20 20 48 65 72 65 20 69 | 74 20 69 73 20 66 6f 72 | Here i|t is for|
|00001120| 20 74 68 65 20 66 69 72 | 73 74 20 74 69 6d 65 20 | the fir|st time |
|00001130| d1 20 74 68 65 20 72 65 | 61 6c 20 73 74 6f 72 79 |. the re|al story|
|00001140| 2c 20 66 72 6f 6d 20 73 | 6f 6d 65 6f 6e 65 20 77 |, from s|omeone w|
|00001150| 68 6f 20 77 61 73 20 74 | 68 65 72 65 2e 20 20 20 |ho was t|here. |
|00001160| 31 33 35 0d 09 51 20 26 | 20 41 09 4d 61 63 69 6e |135..Q &| A.Macin|
|00001170| 74 6f 73 68 20 51 20 26 | 20 41 20 20 20 41 70 70 |tosh Q &| A App|
|00001180| 6c 65 d5 73 20 44 65 76 | 65 6c 6f 70 65 72 20 53 |le.s Dev|eloper S|
|00001190| 75 70 70 6f 72 74 20 43 | 65 6e 74 65 72 20 61 6e |upport C|enter an|
|000011a0| 73 77 65 72 73 20 79 6f | 75 72 20 71 75 65 73 74 |swers yo|ur quest|
|000011b0| 69 6f 6e 73 20 61 62 6f | 75 74 20 70 72 6f 64 75 |ions abo|ut produ|
|000011c0| 63 74 20 64 65 76 65 6c | 6f 70 6d 65 6e 74 2c 20 |ct devel|opment, |
|000011d0| 70 6f 73 74 61 67 65 20 | 73 74 61 6d 70 20 67 6c |postage |stamp gl|
|000011e0| 75 65 2c 20 61 6e 64 20 | 6d 6f 72 65 2e 20 20 20 |ue, and |more. |
|000011f0| 31 31 39 0d 09 49 4e 44 | 45 58 09 31 33 37 0d 43 |119..IND|EX.137.C|
|00001200| 41 52 4f 4c 49 4e 45 20 | 52 4f 53 45 0d 44 65 61 |AROLINE |ROSE.Dea|
|00001210| 72 20 52 65 61 64 65 72 | 73 2c 0d 57 65 d5 72 65 |r Reader|s,.We.re|
|00001220| 20 65 78 63 69 74 65 64 | 20 74 6f 20 62 72 69 6e | excited| to brin|
|00001230| 67 20 79 6f 75 2c 20 69 | 6e 20 74 68 69 73 20 69 |g you, i|n this i|
|00001240| 73 73 75 65 2c 20 64 65 | 76 65 6c 6f 70 d5 73 20 |ssue, de|velop.s |
|00001250| 66 69 72 73 74 20 4e 65 | 77 74 6f 6e 20 61 72 74 |first Ne|wton art|
|00001260| 69 63 6c 65 2e 20 45 76 | 65 6e 20 69 66 20 79 6f |icle. Ev|en if yo|
|00001270| 75 d5 72 65 20 6e 6f 74 | 20 73 65 74 20 75 70 20 |u.re not| set up |
|00001280| 66 6f 72 20 4e 65 77 74 | 6f 6e 20 64 65 76 65 6c |for Newt|on devel|
|00001290| 6f 70 6d 65 6e 74 2c 20 | 79 6f 75 20 6d 61 79 20 |opment, |you may |
|000012a0| 66 69 6e 64 20 74 68 69 | 73 20 61 72 74 69 63 6c |find thi|s articl|
|000012b0| 65 20 6f 66 20 69 6e 74 | 65 72 65 73 74 2e 20 42 |e of int|erest. B|
|000012c0| 75 74 20 69 74 d5 73 20 | 74 68 65 20 61 72 74 69 |ut it.s |the arti|
|000012d0| 63 6c 65 20 6f 6e 20 7a | 6f 6f 6d 69 6e 67 20 77 |cle on z|ooming w|
|000012e0| 69 6e 64 6f 77 73 20 74 | 68 61 74 20 69 6e 73 70 |indows t|hat insp|
|000012f0| 69 72 65 64 20 74 68 69 | 73 20 65 64 69 74 6f 72 |ired thi|s editor|
|00001300| 69 61 6c 2e 20 54 68 65 | 20 73 75 62 6a 65 63 74 |ial. The| subject|
|00001310| 20 69 73 20 75 73 65 72 | 20 69 6e 74 65 72 66 61 | is user| interfa|
|00001320| 63 65 20 61 6e 6e 6f 79 | 61 6e 63 65 73 3a 20 74 |ce annoy|ances: t|
|00001330| 68 6f 73 65 20 63 61 73 | 65 73 20 77 68 65 72 65 |hose cas|es where|
|00001340| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00001350| 20 64 6f 65 73 6e d5 74 | 20 71 75 69 74 65 20 64 | doesn.t| quite d|
|00001360| 6f 20 77 68 61 74 20 74 | 68 65 20 75 73 65 72 20 |o what t|he user |
|00001370| 65 78 70 65 63 74 73 20 | 69 74 20 74 6f 20 d1 20 |expects |it to . |
|00001380| 61 73 20 77 68 65 6e 20 | 61 20 77 69 6e 64 6f 77 |as when |a window|
|00001390| 20 7a 6f 6f 6d 73 20 74 | 6f 20 61 6e 20 6f 64 64 | zooms t|o an odd|
|000013a0| 20 6c 6f 63 61 74 69 6f | 6e 20 d1 20 61 6e 64 20 | locatio|n . and |
|000013b0| 74 68 65 20 75 73 65 72 | 20 68 61 73 20 74 6f 20 |the user| has to |
|000013c0| 61 64 6a 75 73 74 20 66 | 6f 72 20 69 74 2e 20 53 |adjust f|or it. S|
|000013d0| 6f 20 77 68 61 74 d5 73 | 20 74 68 65 20 62 69 67 |o what.s| the big|
|000013e0| 20 64 65 61 6c 3f 20 57 | 65 6c 6c 2c 20 69 74 20 | deal? W|ell, it |
|000013f0| 61 6c 6c 20 61 64 64 73 | 20 75 70 2e 20 4f 76 65 |all adds| up. Ove|
|00001400| 72 20 74 69 6d 65 2c 20 | 74 68 65 20 68 61 72 6d |r time, |the harm|
|00001410| 20 74 6f 20 74 68 65 20 | 75 73 65 72 20 66 72 6f | to the |user fro|
|00001420| 6d 20 63 6f 6d 70 65 6e | 73 61 74 69 6e 67 20 66 |m compen|sating f|
|00001430| 6f 72 20 74 68 65 73 65 | 20 70 72 6f 62 6c 65 6d |or these| problem|
|00001440| 73 20 63 61 6e 20 62 65 | 20 70 68 79 73 69 63 61 |s can be| physica|
|00001450| 6c 20 61 73 20 77 65 6c | 6c 20 61 73 20 6d 65 6e |l as wel|l as men|
|00001460| 74 61 6c 2e 20 59 6f 75 | d5 6c 6c 20 65 6e 64 20 |tal. You|.ll end |
|00001470| 75 70 20 77 69 74 68 20 | 61 20 63 75 73 74 6f 6d |up with |a custom|
|00001480| 65 72 20 77 68 6f 20 69 | 73 20 73 75 66 66 65 72 |er who i|s suffer|
|00001490| 69 6e 67 20 69 6e 20 6d | 6f 72 65 20 77 61 79 73 |ing in m|ore ways|
|000014a0| 20 74 68 61 6e 20 6f 6e | 65 2e 0d 41 73 20 4a 6f | than on|e..As Jo|
|000014b0| 61 6e 20 53 74 69 67 6c | 69 61 6e 69 20 70 75 74 |an Stigl|iani put|
|000014c0| 73 20 69 74 20 69 6e 20 | 68 65 72 20 66 6f 72 74 |s it in |her fort|
|000014d0| 68 63 6f 6d 69 6e 67 20 | 62 6f 6f 6b 2c 20 48 69 |hcoming |book, Hi|
|000014e0| 67 68 2d 54 65 63 68 20 | 48 65 61 6c 74 68 3a 20 |gh-Tech |Health: |
|000014f0| 54 68 65 20 43 6f 6d 70 | 75 74 65 72 20 55 73 65 |The Comp|uter Use|
|00001500| 72 d5 73 20 53 75 72 76 | 69 76 61 6c 20 47 75 69 |r.s Surv|ival Gui|
|00001510| 64 65 3a 20 d2 53 6f 66 | 74 77 61 72 65 20 63 61 |de: .Sof|tware ca|
|00001520| 6e 20 6d 61 6b 65 20 79 | 6f 75 20 77 6f 72 6b 20 |n make y|ou work |
|00001530| 68 61 72 64 20 61 6e 64 | 20 63 6f 6e 74 72 69 62 |hard and| contrib|
|00001540| 75 74 65 20 74 6f 20 6f | 76 65 72 75 73 65 20 69 |ute to o|veruse i|
|00001550| 66 20 69 74 20 72 65 71 | 75 69 72 65 73 20 61 20 |f it req|uires a |
|00001560| 6c 6f 74 20 6f 66 20 6d | 6f 75 73 65 20 75 73 65 |lot of m|ouse use|
|00001570| 20 d1 20 63 6c 69 63 6b | 69 6e 67 20 61 6e 64 20 | . click|ing and |
|00001580| 64 72 61 67 67 69 6e 67 | 2c 20 73 63 72 6f 6c 6c |dragging|, scroll|
|00001590| 69 6e 67 2c 20 6d 6f 76 | 69 6e 67 20 74 68 65 20 |ing, mov|ing the |
|000015a0| 63 75 72 73 6f 72 20 62 | 61 63 6b 20 61 6e 64 20 |cursor b|ack and |
|000015b0| 66 6f 72 74 68 20 61 63 | 72 6f 73 73 20 74 68 65 |forth ac|ross the|
|000015c0| 20 73 63 72 65 65 6e 20 | d1 20 6f 72 20 61 20 6c | screen |. or a l|
|000015d0| 6f 74 20 6f 66 20 63 6f | 6d 70 6c 65 78 20 6b 65 |ot of co|mplex ke|
|000015e0| 79 20 73 65 71 75 65 6e | 63 65 73 20 6f 72 20 65 |y sequen|ces or e|
|000015f0| 78 63 65 73 73 69 76 65 | 20 6b 65 79 69 6e 67 2e |xcessive| keying.|
|00001600| 20 53 6f 66 74 77 61 72 | 65 20 74 68 61 74 20 69 | Softwar|e that i|
|00001610| 73 20 64 69 66 66 69 63 | 75 6c 74 20 6f 72 20 66 |s diffic|ult or f|
|00001620| 72 75 73 74 72 61 74 69 | 6e 67 20 74 6f 20 75 73 |rustrati|ng to us|
|00001630| 65 20 63 61 6e 20 69 6e | 63 72 65 61 73 65 20 73 |e can in|crease s|
|00001640| 74 72 65 73 73 20 61 6e | 64 20 74 65 6e 73 69 6f |tress an|d tensio|
|00001650| 6e 2e d3 20 54 68 69 73 | 20 65 73 70 65 63 69 61 |n.. This| especia|
|00001660| 6c 6c 79 20 73 74 72 75 | 63 6b 20 61 20 63 68 6f |lly stru|ck a cho|
|00001670| 72 64 20 77 69 74 68 20 | 6d 65 2c 20 73 69 6e 63 |rd with |me, sinc|
|00001680| 65 20 49 20 73 75 66 66 | 65 72 20 66 72 6f 6d 20 |e I suff|er from |
|00001690| 74 65 6e 64 69 6e 69 74 | 69 73 20 63 61 75 73 65 |tendinit|is cause|
|000016a0| 64 20 62 79 20 65 78 63 | 65 73 73 69 76 65 20 6b |d by exc|essive k|
|000016b0| 65 79 69 6e 67 20 61 6e | 64 20 6d 6f 75 73 69 6e |eying an|d mousin|
|000016c0| 67 2e 20 53 6f 20 49 d5 | 6d 20 67 6f 69 6e 67 20 |g. So I.|m going |
|000016d0| 74 6f 20 74 61 6b 65 20 | 61 64 76 61 6e 74 61 67 |to take |advantag|
|000016e0| 65 20 6f 66 20 74 68 69 | 73 20 6f 70 70 6f 72 74 |e of thi|s opport|
|000016f0| 75 6e 69 74 79 20 74 6f | 20 76 65 6e 74 20 6d 79 |unity to| vent my|
|00001700| 20 66 72 75 73 74 72 61 | 74 69 6f 6e 20 28 69 73 | frustra|tion (is|
|00001710| 6e d5 74 20 74 68 61 74 | 20 77 68 61 74 20 65 64 |n.t that| what ed|
|00001720| 69 74 6f 72 69 61 6c 73 | 20 61 72 65 20 66 6f 72 |itorials| are for|
|00001730| 3f 29 2e 20 4d 61 69 6e | 6c 79 2c 20 49 20 68 6f |?). Main|ly, I ho|
|00001740| 70 65 20 74 6f 20 68 61 | 76 65 20 61 74 20 6c 65 |pe to ha|ve at le|
|00001750| 61 73 74 20 73 6f 6d 65 | 20 73 6d 61 6c 6c 20 69 |ast some| small i|
|00001760| 6e 66 6c 75 65 6e 63 65 | 20 6f 6e 20 68 6f 77 20 |nfluence| on how |
|00001770| 79 6f 75 20 64 65 73 69 | 67 6e 20 74 68 65 20 69 |you desi|gn the i|
|00001780| 6e 74 65 72 66 61 63 65 | 20 66 6f 72 20 79 6f 75 |nterface| for you|
|00001790| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 20 69 |r applic|ations i|
|000017a0| 6e 20 74 68 65 20 66 75 | 74 75 72 65 2e 0d 57 68 |n the fu|ture..Wh|
|000017b0| 79 20 64 6f 20 73 6f 20 | 6d 61 6e 79 20 61 70 70 |y do so |many app|
|000017c0| 6c 69 63 61 74 69 6f 6e | 73 20 6c 61 63 6b 20 63 |lication|s lack c|
|000017d0| 6f 6d 6d 6f 6e 20 73 65 | 6e 73 65 3f 20 57 68 79 |ommon se|nse? Why|
|000017e0| 2c 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 73 |, for ex|ample, s|
|000017f0| 68 6f 75 6c 64 6e d5 74 | 20 50 72 69 6e 74 20 6f |houldn.t| Print o|
|00001800| 72 20 53 61 76 65 20 77 | 6f 72 6b 20 6f 6e 20 6d |r Save w|ork on m|
|00001810| 79 20 66 72 6f 6e 74 6d | 6f 73 74 20 64 6f 63 75 |y frontm|ost docu|
|00001820| 6d 65 6e 74 20 65 76 65 | 6e 20 69 66 20 74 68 65 |ment eve|n if the|
|00001830| 20 61 63 74 69 76 65 20 | 77 69 6e 64 6f 77 20 68 | active |window h|
|00001840| 61 70 70 65 6e 73 20 74 | 6f 20 62 65 20 61 20 64 |appens t|o be a d|
|00001850| 69 61 6c 6f 67 20 62 6f | 78 3f 20 57 68 79 20 63 |ialog bo|x? Why c|
|00001860| 61 6e d5 74 20 49 20 6a | 75 73 74 20 74 79 70 65 |an.t I j|ust type|
|00001870| 20 43 6f 6d 6d 61 6e 64 | 2d 46 20 66 6f 6c 6c 6f | Command|-F follo|
|00001880| 77 65 64 20 62 79 20 74 | 65 78 74 20 74 6f 20 62 |wed by t|ext to b|
|00001890| 65 20 66 6f 75 6e 64 20 | 72 61 74 68 65 72 20 74 |e found |rather t|
|000018a0| 68 61 6e 20 66 69 72 73 | 74 20 68 61 76 65 20 74 |han firs|t have t|
|000018b0| 6f 20 73 65 6c 65 63 74 | 20 74 68 65 20 74 65 78 |o select| the tex|
|000018c0| 74 20 74 68 61 74 20 74 | 68 65 20 61 70 70 6c 69 |t that t|he appli|
|000018d0| 63 61 74 69 6f 6e 20 28 | 66 6f 72 20 73 6f 6d 65 |cation (|for some|
|000018e0| 20 6f 64 64 20 72 65 61 | 73 6f 6e 29 20 64 69 64 | odd rea|son) did|
|000018f0| 6e d5 74 20 63 68 6f 6f | 73 65 20 74 6f 20 68 69 |n.t choo|se to hi|
|00001900| 67 68 6c 69 67 68 74 20 | 69 6e 20 74 68 65 20 46 |ghlight |in the F|
|00001910| 69 6e 64 20 64 69 61 6c | 6f 67 3f 20 57 68 79 2c |ind dial|og? Why,|
|00001920| 20 65 76 65 6e 20 6f 6e | 20 6d 79 20 74 77 6f 2d | even on| my two-|
|00001930| 70 61 67 65 20 6d 6f 6e | 69 74 6f 72 2c 20 64 6f |page mon|itor, do|
|00001940| 20 49 20 68 61 76 65 20 | 74 6f 20 72 65 73 69 7a | I have |to resiz|
|00001950| 65 20 61 20 74 65 65 6e | 79 20 77 69 6e 64 6f 77 |e a teen|y window|
|00001960| 20 66 6f 72 20 65 76 65 | 72 79 20 70 69 65 63 65 | for eve|ry piece|
|00001970| 20 6f 66 20 65 2d 6d 61 | 69 6c 20 49 20 72 65 63 | of e-ma|il I rec|
|00001980| 65 69 76 65 2c 20 6f 72 | 20 72 65 61 64 20 61 20 |eive, or| read a |
|00001990| 6d 65 72 65 20 65 69 67 | 68 74 20 6c 69 6e 65 73 |mere eig|ht lines|
|000019a0| 20 61 74 20 61 20 74 69 | 6d 65 2c 20 73 63 72 6f | at a ti|me, scro|
|000019b0| 6c 6c 69 6e 67 20 72 65 | 70 65 61 74 65 64 6c 79 |lling re|peatedly|
|000019c0| 20 28 65 78 63 65 73 73 | 69 76 65 6c 79 29 20 74 | (excess|ively) t|
|000019d0| 6f 20 67 65 74 20 74 6f | 20 74 68 65 20 65 6e 64 |o get to| the end|
|000019e0| 3f 20 57 68 79 2c 20 77 | 68 65 6e 20 49 20 63 75 |? Why, w|hen I cu|
|000019f0| 74 20 61 20 64 6f 75 62 | 6c 65 2d 63 6c 69 63 6b |t a doub|le-click|
|00001a00| 65 64 20 77 6f 72 64 20 | 61 6e 64 20 74 68 65 6e |ed word |and then|
|00001a10| 20 70 61 73 74 65 20 69 | 74 2c 20 64 6f 20 73 6f | paste i|t, do so|
|00001a20| 20 66 65 77 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | few app|lication|
|00001a30| 73 20 61 64 64 20 73 70 | 61 63 65 73 20 69 6e 74 |s add sp|aces int|
|00001a40| 65 6c 6c 69 67 65 6e 74 | 6c 79 3f 0d 54 68 65 20 |elligent|ly?.The |
|00001a50| 6c 69 73 74 20 6f 66 20 | 75 73 65 72 20 69 6e 74 |list of |user int|
|00001a60| 65 72 66 61 63 65 20 73 | 75 70 65 72 66 6c 75 69 |erface s|uperflui|
|00001a70| 74 69 65 73 20 67 6f 65 | 73 20 6f 6e 20 61 6e 64 |ties goe|s on and|
|00001a80| 20 6f 6e 3b 20 74 68 65 | 73 65 20 61 72 65 20 6f | on; the|se are o|
|00001a90| 6e 6c 79 20 74 68 65 20 | 70 72 6f 62 6c 65 6d 73 |nly the |problems|
|00001aa0| 20 49 20 65 6e 63 6f 75 | 6e 74 65 72 20 6d 6f 73 | I encou|nter mos|
|00001ab0| 74 20 66 72 65 71 75 65 | 6e 74 6c 79 20 65 61 63 |t freque|ntly eac|
|00001ac0| 68 20 64 61 79 2e 20 50 | 6c 65 61 73 65 2c 20 67 |h day. P|lease, g|
|00001ad0| 69 76 65 20 6d 79 20 68 | 61 6e 64 73 20 28 61 6e |ive my h|ands (an|
|00001ae0| 64 20 6d 79 20 6d 69 6e | 64 29 20 61 20 62 72 65 |d my min|d) a bre|
|00001af0| 61 6b 21 20 49 66 20 49 | 20 6d 61 79 20 6d 61 6b |ak! If I| may mak|
|00001b00| 65 20 61 20 66 65 77 20 | 73 75 67 67 65 73 74 69 |e a few |suggesti|
|00001b10| 6f 6e 73 3a 0d a5 09 44 | 6f 6e d5 74 20 62 6c 69 |ons:...D|on.t bli|
|00001b20| 6e 64 6c 79 20 66 6f 6c | 6c 6f 77 20 77 68 61 74 |ndly fol|low what|
|00001b30| 20 6f 74 68 65 72 20 61 | 70 70 6c 69 63 61 74 69 | other a|pplicati|
|00001b40| 6f 6e 73 20 68 61 76 65 | 20 64 6f 6e 65 3a 20 6d |ons have| done: m|
|00001b50| 61 79 62 65 20 74 68 65 | 79 20 64 69 64 6e d5 74 |aybe the|y didn.t|
|00001b60| 20 74 68 69 6e 6b 20 69 | 74 20 74 68 72 6f 75 67 | think i|t throug|
|00001b70| 68 20 77 65 6c 6c 20 65 | 6e 6f 75 67 68 2e 20 54 |h well e|nough. T|
|00001b80| 68 65 72 65 d5 73 20 61 | 20 70 6c 61 63 65 20 66 |here.s a| place f|
|00001b90| 6f 72 20 0d 0d 0d 09 67 | 75 69 64 65 6c 69 6e 65 |or ....g|uideline|
|00001ba0| 73 20 61 6e 64 20 70 72 | 65 63 65 64 65 6e 74 73 |s and pr|ecedents|
|00001bb0| 2c 20 62 75 74 20 64 6f | 6e d5 74 20 74 6f 74 61 |, but do|n.t tota|
|00001bc0| 6c 6c 79 20 64 69 73 72 | 65 67 61 72 64 20 63 6f |lly disr|egard co|
|00001bd0| 6d 6d 6f 6e 20 73 65 6e | 73 65 2e 0d a5 09 55 73 |mmon sen|se....Us|
|00001be0| 65 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |e the ap|plicatio|
|00001bf0| 6e 20 79 6f 75 72 73 65 | 6c 66 20 66 6f 72 20 72 |n yourse|lf for r|
|00001c00| 65 61 6c 20 74 61 73 6b | 73 20 75 6e 74 69 6c 20 |eal task|s until |
|00001c10| 79 6f 75 d5 72 65 20 62 | 6c 75 65 20 69 6e 20 74 |you.re b|lue in t|
|00001c20| 68 65 20 66 61 63 65 2e | 20 42 65 20 68 6f 6e 65 |he face.| Be hone|
|00001c30| 73 74 3b 20 77 68 61 74 | 20 62 75 67 73 20 79 6f |st; what| bugs yo|
|00001c40| 75 20 61 62 6f 75 74 20 | 69 74 3f 20 59 6f 75 72 |u about |it? Your|
|00001c50| 20 75 73 65 72 73 20 77 | 69 6c 6c 20 62 65 20 65 | users w|ill be e|
|00001c60| 76 65 6e 20 6c 65 73 73 | 20 74 6f 6c 65 72 61 6e |ven less| toleran|
|00001c70| 74 2e 20 0d a5 09 44 6f | 20 65 78 74 65 6e 73 69 |t. ...Do| extensi|
|00001c80| 76 65 20 75 73 65 72 20 | 74 65 73 74 69 6e 67 20 |ve user |testing |
|00001c90| 62 65 66 6f 72 65 20 66 | 69 72 73 74 20 73 68 69 |before f|irst shi|
|00001ca0| 70 2c 20 6f 66 20 63 6f | 75 72 73 65 20 d1 20 62 |p, of co|urse . b|
|00001cb0| 75 74 20 65 76 65 6e 20 | 61 66 74 65 72 20 79 6f |ut even |after yo|
|00001cc0| 75 20 73 68 69 70 2c 20 | 73 6f 6c 69 63 69 74 20 |u ship, |solicit |
|00001cd0| 66 65 65 64 62 61 63 6b | 20 61 6e 64 20 69 6e 63 |feedback| and inc|
|00001ce0| 6f 72 70 6f 72 61 74 65 | 20 69 74 20 69 6e 74 6f |orporate| it into|
|00001cf0| 20 74 68 65 20 6e 65 78 | 74 20 72 65 6c 65 61 73 | the nex|t releas|
|00001d00| 65 2e 20 42 65 20 73 75 | 72 65 20 74 6f 20 67 65 |e. Be su|re to ge|
|00001d10| 74 20 66 65 65 64 62 61 | 63 6b 20 66 72 6f 6d 20 |t feedba|ck from |
|00001d20| 65 78 70 65 72 69 65 6e | 63 65 64 20 75 73 65 72 |experien|ced user|
|00001d30| 73 2c 20 6e 6f 74 20 6a | 75 73 74 20 66 69 72 73 |s, not j|ust firs|
|00001d40| 74 2d 74 69 6d 65 72 73 | 2e 0d a5 09 42 65 77 61 |t-timers|....Bewa|
|00001d50| 72 65 20 6f 66 20 63 72 | 65 65 70 69 6e 67 20 66 |re of cr|eeping f|
|00001d60| 65 61 74 75 72 69 73 6d | 3a 20 66 69 78 20 70 72 |eaturism|: fix pr|
|00001d70| 6f 62 6c 65 6d 73 20 79 | 6f 75 72 20 74 65 73 74 |oblems y|our test|
|00001d80| 65 72 73 20 6f 72 20 63 | 75 73 74 6f 6d 65 72 73 |ers or c|ustomers|
|00001d90| 20 68 61 76 65 20 77 69 | 74 68 20 63 75 72 72 65 | have wi|th curre|
|00001da0| 6e 74 20 66 65 61 74 75 | 72 65 73 20 62 65 66 6f |nt featu|res befo|
|00001db0| 72 65 20 61 64 64 69 6e | 67 20 6e 65 77 20 6f 6e |re addin|g new on|
|00001dc0| 65 73 2e 0d 54 68 65 73 | 65 20 73 75 67 67 65 73 |es..Thes|e sugges|
|00001dd0| 74 69 6f 6e 73 20 61 72 | 65 20 62 61 73 65 64 20 |tions ar|e based |
|00001de0| 6f 6e 20 6d 79 20 6f 77 | 6e 20 65 78 70 65 72 69 |on my ow|n experi|
|00001df0| 65 6e 63 65 20 61 73 20 | 74 68 65 20 75 73 65 72 |ence as |the user|
|00001e00| 20 6d 61 6e 75 61 6c 20 | 77 72 69 74 65 72 20 61 | manual |writer a|
|00001e10| 6e 64 20 0d 61 64 20 68 | 6f 63 20 70 72 6f 64 75 |nd .ad h|oc produ|
|00001e20| 63 74 20 6d 61 6e 61 67 | 65 72 20 66 6f 72 20 74 |ct manag|er for t|
|00001e30| 68 65 20 66 69 72 73 74 | 20 76 65 72 73 69 6f 6e |he first| version|
|00001e40| 20 6f 66 20 74 68 65 20 | 57 72 69 74 65 4e 6f 77 | of the |WriteNow|
|00001e50| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2e 20 4a 6f | applica|tion. Jo|
|00001e60| 68 6e 20 41 6e 64 65 72 | 73 6f 6e 2c 20 6f 6e 65 |hn Ander|son, one|
|00001e70| 20 6f 66 20 74 68 65 20 | 61 75 74 68 6f 72 73 20 | of the |authors |
|00001e80| 6f 66 20 57 72 69 74 65 | 4e 6f 77 2c 20 73 61 79 |of Write|Now, say|
|00001e90| 73 20 68 65 20 74 68 69 | 6e 6b 73 20 69 6e 74 65 |s he thi|nks inte|
|00001ea0| 72 66 61 63 65 20 70 72 | 6f 62 6c 65 6d 73 20 73 |rface pr|oblems s|
|00001eb0| 74 65 6d 20 66 72 6f 6d | 20 73 6f 66 74 77 61 72 |tem from| softwar|
|00001ec0| 65 20 62 65 69 6e 67 20 | 74 6f 6f 20 68 61 72 64 |e being |too hard|
|00001ed0| 20 74 6f 20 77 72 69 74 | 65 20 28 73 6f 6d 65 74 | to writ|e (somet|
|00001ee0| 68 69 6e 67 20 68 69 73 | 20 6e 65 78 74 20 70 72 |hing his| next pr|
|00001ef0| 6f 64 75 63 74 20 77 69 | 6c 6c 20 61 64 64 72 65 |oduct wi|ll addre|
|00001f00| 73 73 29 20 61 6e 64 20 | 66 72 6f 6d 20 74 68 65 |ss) and |from the|
|00001f10| 20 72 65 6c 61 74 65 64 | 20 70 72 6f 62 6c 65 6d | related| problem|
|00001f20| 20 6f 66 20 73 6f 66 74 | 77 61 72 65 20 74 65 61 | of soft|ware tea|
|00001f30| 6d 73 20 62 65 69 6e 67 | 20 74 6f 6f 20 6c 61 72 |ms being| too lar|
|00001f40| 67 65 2e 20 57 69 74 68 | 20 6d 61 6e 79 20 73 70 |ge. With| many sp|
|00001f50| 65 63 69 61 6c 69 7a 65 | 64 20 70 72 6f 67 72 61 |ecialize|d progra|
|00001f60| 6d 6d 65 72 73 20 6f 6e | 20 61 20 70 72 6f 6a 65 |mmers on| a proje|
|00001f70| 63 74 2c 20 6e 6f 20 6f | 6e 65 20 70 65 72 73 6f |ct, no o|ne perso|
|00001f80| 6e 20 66 6f 63 75 73 65 | 73 20 6f 6e 20 74 68 65 |n focuse|s on the|
|00001f90| 20 6f 76 65 72 61 6c 6c | 20 70 69 63 74 75 72 65 | overall| picture|
|00001fa0| 20 77 65 6c 6c 20 65 6e | 6f 75 67 68 20 74 6f 20 | well en|ough to |
|00001fb0| 6d 61 6b 65 20 74 68 65 | 20 72 65 71 75 69 73 69 |make the| requisi|
|00001fc0| 74 65 20 69 6e 74 65 6c | 6c 69 67 65 6e 74 20 64 |te intel|ligent d|
|00001fd0| 65 63 69 73 69 6f 6e 73 | 20 61 62 6f 75 74 20 74 |ecisions| about t|
|00001fe0| 68 65 20 69 6e 74 65 72 | 66 61 63 65 2e 20 47 69 |he inter|face. Gi|
|00001ff0| 76 65 6e 20 61 20 6c 61 | 72 67 65 20 74 65 61 6d |ven a la|rge team|
|00002000| 2c 20 61 20 67 6f 6f 64 | 20 70 72 6f 64 75 63 74 |, a good| product|
|00002010| 20 6d 61 6e 61 67 65 72 | 20 63 61 6e 20 6d 61 6b | manager| can mak|
|00002020| 65 20 61 6c 6c 20 74 68 | 65 20 64 69 66 66 65 72 |e all th|e differ|
|00002030| 65 6e 63 65 20 69 6e 20 | 74 68 65 20 77 6f 72 6c |ence in |the worl|
|00002040| 64 2e 20 4c 6f 6f 6b 20 | 66 6f 72 20 73 6f 6d 65 |d. Look |for some|
|00002050| 6f 6e 65 20 62 6f 74 68 | 20 6b 6e 6f 77 6c 65 64 |one both| knowled|
|00002060| 67 65 61 62 6c 65 20 61 | 62 6f 75 74 20 74 68 65 |geable a|bout the|
|00002070| 20 6d 61 72 6b 65 74 20 | 61 6e 64 20 61 62 6c 65 | market |and able|
|00002080| 20 74 6f 20 67 72 61 73 | 70 20 74 68 65 20 74 65 | to gras|p the te|
|00002090| 63 68 6e 69 63 61 6c 20 | 69 73 73 75 65 73 2e 20 |chnical |issues. |
|000020a0| 41 73 20 49 20 6e 6f 74 | 65 64 20 61 62 6f 75 74 |As I not|ed about|
|000020b0| 20 74 65 63 68 6e 69 63 | 61 6c 20 77 72 69 74 69 | technic|al writi|
|000020c0| 6e 67 20 69 6e 20 61 6e | 20 65 61 72 6c 69 65 72 |ng in an| earlier|
|000020d0| 20 65 64 69 74 6f 72 69 | 61 6c 2c 20 70 72 6f 64 | editori|al, prod|
|000020e0| 75 63 74 20 6d 61 6e 61 | 67 65 6d 65 6e 74 20 69 |uct mana|gement i|
|000020f0| 73 6e d5 74 20 61 20 6a | 6f 62 20 74 68 61 74 20 |sn.t a j|ob that |
|00002100| 6a 75 73 74 20 61 6e 79 | 20 73 6d 61 72 74 20 70 |just any| smart p|
|00002110| 65 72 73 6f 6e 20 63 61 | 6e 20 64 6f 2c 20 6f 72 |erson ca|n do, or|
|00002120| 20 74 68 61 74 20 43 45 | 4f 73 20 6f 72 20 56 50 | that CE|Os or VP|
|00002130| 73 20 73 68 6f 75 6c 64 | 20 74 61 63 6b 6c 65 20 |s should| tackle |
|00002140| 69 6e 20 74 68 65 69 72 | 20 73 70 61 72 65 20 74 |in their| spare t|
|00002150| 69 6d 65 2e 0d 53 6f 20 | 49 20 67 75 65 73 73 20 |ime..So |I guess |
|00002160| 74 68 65 20 6d 6f 72 61 | 6c 20 69 73 20 74 68 61 |the mora|l is tha|
|00002170| 74 20 6d 6f 72 65 20 69 | 73 20 6e 6f 74 20 61 6c |t more i|s not al|
|00002180| 77 61 79 73 20 62 65 74 | 74 65 72 20 d1 20 6e 6f |ways bet|ter . no|
|00002190| 74 20 77 68 65 6e 20 69 | 74 20 63 6f 6d 65 73 20 |t when i|t comes |
|000021a0| 74 6f 20 66 65 61 74 75 | 72 65 73 20 69 6e 20 61 |to featu|res in a|
|000021b0| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 6f 72 |n applic|ation or|
|000021c0| 20 70 72 6f 67 72 61 6d | 6d 65 72 73 20 6f 6e 20 | program|mers on |
|000021d0| 61 20 70 72 6f 6a 65 63 | 74 2c 20 61 6e 64 20 63 |a projec|t, and c|
|000021e0| 65 72 74 61 69 6e 6c 79 | 20 6e 6f 74 20 77 68 65 |ertainly| not whe|
|000021f0| 6e 20 69 74 20 63 6f 6d | 65 73 20 74 6f 20 6b 65 |n it com|es to ke|
|00002200| 79 73 74 72 6f 6b 65 73 | 20 61 6e 64 20 6d 6f 75 |ystrokes| and mou|
|00002210| 73 65 20 63 6c 69 63 6b | 73 20 69 6e 20 61 6e 20 |se click|s in an |
|00002220| 69 6e 74 65 72 66 61 63 | 65 2e 20 50 6c 65 61 73 |interfac|e. Pleas|
|00002230| 65 2c 20 6b 65 65 70 20 | 69 74 20 63 6c 65 61 6e |e, keep |it clean|
|00002240| 2e 0d 43 61 72 6f 6c 69 | 6e 65 20 52 6f 73 65 0d |..Caroli|ne Rose.|
|00002250| 45 64 69 74 6f 72 0d 4c | 45 54 54 45 52 53 0d 46 |Editor.L|ETTERS.F|
|00002260| 4c 4f 41 54 49 4e 47 20 | 42 55 47 53 0d 49 20 6c |LOATING |BUGS.I l|
|00002270| 69 6b 65 64 20 49 73 73 | 75 65 20 31 35 d5 73 20 |iked Iss|ue 15.s |
|00002280| 61 72 74 69 63 6c 65 20 | 6f 6e 20 66 6c 6f 61 74 |article |on float|
|00002290| 69 6e 67 20 77 69 6e 64 | 6f 77 73 20 61 6e 64 20 |ing wind|ows and |
|000022a0| 68 61 76 65 20 73 75 63 | 63 65 73 73 66 75 6c 6c |have suc|cessfull|
|000022b0| 79 20 69 6d 70 6c 65 6d | 65 6e 74 65 64 20 79 6f |y implem|ented yo|
|000022c0| 75 72 20 72 6f 75 74 69 | 6e 65 73 2e 20 49 20 64 |ur routi|nes. I d|
|000022d0| 69 64 2c 20 68 6f 77 65 | 76 65 72 2c 20 66 69 6e |id, howe|ver, fin|
|000022e0| 64 20 6f 6e 65 20 62 75 | 67 2e 20 59 6f 75 72 20 |d one bu|g. Your |
|000022f0| 72 6f 75 74 69 6e 65 20 | 48 69 64 65 52 65 66 65 |routine |HideRefe|
|00002300| 72 65 6e 63 65 64 57 69 | 6e 64 6f 77 20 63 61 6e |rencedWi|ndow can|
|00002310| 20 6c 65 61 76 65 20 74 | 68 65 20 70 72 6f 63 65 | leave t|he proce|
|00002320| 73 73 d5 73 20 77 69 6e | 64 6f 77 20 6c 69 73 74 |ss.s win|dow list|
|00002330| 20 70 6f 69 6e 74 69 6e | 67 20 74 6f 20 61 20 64 | pointin|g to a d|
|00002340| 65 61 6c 6c 6f 63 61 74 | 65 64 20 77 69 6e 64 6f |eallocat|ed windo|
|00002350| 77 20 77 68 65 6e 20 74 | 68 65 72 65 20 61 72 65 |w when t|here are|
|00002360| 20 6e 6f 20 66 6c 6f 61 | 74 69 6e 67 20 77 69 6e | no floa|ting win|
|00002370| 64 6f 77 73 2e 20 0d d1 | 20 43 68 65 73 74 65 72 |dows. ..| Chester|
|00002380| 20 4d 75 72 70 68 79 0d | 54 68 61 6e 6b 73 20 66 | Murphy.|Thanks f|
|00002390| 6f 72 20 70 6f 69 6e 74 | 69 6e 67 20 74 68 69 73 |or point|ing this|
|000023a0| 20 6f 75 74 2e 20 49 74 | d5 73 20 66 69 78 65 64 | out. It|.s fixed|
|000023b0| 20 d1 20 61 6c 6f 6e 67 | 20 77 69 74 68 20 73 6f | . along| with so|
|000023c0| 6d 65 20 6f 74 68 65 72 | 20 73 6d 61 6c 6c 20 62 |me other| small b|
|000023d0| 75 67 73 20 d1 20 69 6e | 20 74 68 65 20 63 6f 64 |ugs . in| the cod|
|000023e0| 65 20 6f 6e 20 74 68 69 | 73 20 69 73 73 75 65 d5 |e on thi|s issue.|
|000023f0| 73 20 43 44 2e 20 28 49 | 74 d5 73 20 62 65 65 6e |s CD. (I|t.s been|
|00002400| 20 66 69 78 65 64 20 73 | 69 6e 63 65 20 49 73 73 | fixed s|ince Iss|
|00002410| 75 65 20 31 36 d5 73 20 | 43 44 2e 29 0d d1 20 44 |ue 16.s |CD.).. D|
|00002420| 65 61 6e 20 59 75 0d 50 | 52 41 47 4d 41 54 49 43 |ean Yu.P|RAGMATIC|
|00002430| 20 53 4f 4c 55 54 49 4f | 4e 0d 46 6c 6f 61 74 69 | SOLUTIO|N.Floati|
|00002440| 6e 67 20 77 69 6e 64 6f | 77 73 20 69 73 20 6f 6e |ng windo|ws is on|
|00002450| 65 20 6f 66 20 6d 79 20 | 66 61 76 6f 72 69 74 65 |e of my |favorite|
|00002460| 20 73 75 62 6a 65 63 74 | 73 2e 20 49 20 74 72 69 | subject|s. I tri|
|00002470| 65 64 20 74 6f 20 63 6f | 6d 70 69 6c 65 20 79 6f |ed to co|mpile yo|
|00002480| 75 72 20 57 69 6e 64 6f | 77 45 78 74 65 6e 73 69 |ur Windo|wExtensi|
|00002490| 6f 6e 20 65 78 61 6d 70 | 6c 65 2c 20 75 73 69 6e |on examp|le, usin|
|000024a0| 67 20 54 48 49 4e 4b 20 | 43 20 36 2e 30 2e 20 4d |g THINK |C 6.0. M|
|000024b0| 79 20 66 69 72 73 74 20 | 70 72 6f 62 6c 65 6d 20 |y first |problem |
|000024c0| 77 61 73 20 77 69 74 68 | 20 55 53 45 53 36 38 4b |was with| USES68K|
|000024d0| 49 4e 4c 49 4e 45 53 2e | 20 54 48 49 4e 4b 20 43 |INLINES.| THINK C|
|000024e0| 20 63 68 65 63 6b 73 20 | 74 68 65 20 23 70 72 61 | checks |the #pra|
|000024f0| 67 6d 61 20 70 61 72 61 | 6d 65 74 65 72 20 77 69 |gma para|meter wi|
|00002500| 74 68 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 20 |th the f|unction |
|00002510| 64 65 63 6c 61 72 61 74 | 69 6f 6e 2e 20 53 6f 20 |declarat|ion. So |
|00002520| 49 20 74 72 69 65 64 20 | 74 6f 20 75 73 65 20 41 |I tried |to use A|
|00002530| 31 20 61 6e 64 20 44 30 | 20 61 73 20 70 61 72 61 |1 and D0| as para|
|00002540| 6d 65 74 65 72 73 2c 20 | 62 75 74 20 74 68 65 6e |meters, |but then|
|00002550| 20 49 20 6e 65 65 64 65 | 64 20 61 20 66 65 77 20 | I neede|d a few |
|00002560| 6d 6f 72 65 20 23 70 72 | 61 67 6d 61 73 20 66 6f |more #pr|agmas fo|
|00002570| 72 20 74 68 65 20 61 63 | 74 69 76 61 74 65 20 68 |r the ac|tivate h|
|00002580| 61 6e 64 6c 65 72 73 2e | 20 49 20 73 74 69 6c 6c |andlers.| I still|
|00002590| 20 64 6f 6e d5 74 20 68 | 61 76 65 20 61 20 77 6f | don.t h|ave a wo|
|000025a0| 72 6b 69 6e 67 20 76 65 | 72 73 69 6f 6e 2e 20 0d |rking ve|rsion. .|
|000025b0| 41 6c 73 6f 2c 20 63 6f | 75 6c 64 20 79 6f 75 20 |Also, co|uld you |
|000025c0| 65 78 70 6c 61 69 6e 20 | 77 68 79 20 77 65 20 6e |explain |why we n|
|000025d0| 65 65 64 20 43 61 6c 6c | 55 6e 69 76 65 72 73 61 |eed Call|Universa|
|000025e0| 6c 50 72 6f 63 3f 20 49 | d5 6d 20 71 75 69 74 65 |lProc? I|.m quite|
|000025f0| 20 68 61 70 70 79 20 77 | 69 74 68 20 74 68 65 20 | happy w|ith the |
|00002600| 43 20 73 79 6e 74 61 78 | 2e 0d 54 68 61 6e 6b 20 |C syntax|..Thank |
|00002610| 79 6f 75 20 76 65 72 79 | 20 6d 75 63 68 20 66 6f |you very| much fo|
|00002620| 72 20 64 6f 69 6e 67 20 | 73 75 63 68 20 61 20 67 |r doing |such a g|
|00002630| 6f 6f 64 20 6a 6f 62 20 | 6f 6e 20 74 68 65 20 61 |ood job |on the a|
|00002640| 72 74 69 63 6c 65 2e 0d | d1 20 52 6f 62 65 72 74 |rticle..|. Robert|
|00002650| 20 50 75 79 6f 6c 0d 54 | 68 65 20 75 73 65 20 6f | Puyol.T|he use o|
|00002660| 66 20 55 53 45 53 36 38 | 4b 49 4e 4c 49 4e 45 53 |f USES68|KINLINES|
|00002670| 20 68 61 73 20 63 68 61 | 6e 67 65 64 20 73 69 6e | has cha|nged sin|
|00002680| 63 65 20 49 73 73 75 65 | 20 31 35 20 77 65 6e 74 |ce Issue| 15 went|
|00002690| 20 74 6f 20 70 72 65 73 | 73 2e 20 43 75 72 72 65 | to pres|s. Curre|
|000026a0| 6e 74 6c 79 2c 20 23 70 | 72 61 67 6d 61 20 70 61 |ntly, #p|ragma pa|
|000026b0| 72 61 6d 65 74 65 72 73 | 20 61 72 65 6e d5 74 20 |rameters| aren.t |
|000026c0| 0d 75 73 65 64 20 61 6e | 79 20 6d 6f 72 65 2c 20 |.used an|y more, |
|000026d0| 73 6f 20 79 6f 75 20 73 | 68 6f 75 6c 64 6e d5 74 |so you s|houldn.t|
|000026e0| 20 68 61 76 65 20 20 61 | 6e 79 20 70 72 6f 62 6c | have a|ny probl|
|000026f0| 65 6d 73 20 75 73 69 6e | 67 20 74 68 65 20 68 65 |ems usin|g the he|
|00002700| 61 64 65 72 20 66 69 6c | 65 20 20 77 69 74 68 20 |ader fil|e with |
|00002710| 54 48 49 4e 4b 20 43 2e | 20 41 64 64 69 74 69 6f |THINK C.| Additio|
|00002720| 6e 61 6c 6c 79 2c 20 74 | 68 65 20 6e 65 77 20 0d |nally, t|he new .|
|00002730| 09 76 65 72 73 69 6f 6e | 20 6f 66 20 74 68 65 20 |.version| of the |
|00002740| 66 6c 6f 61 74 69 6e 67 | 20 77 69 6e 64 6f 77 73 |floating| windows|
|00002750| 20 63 6f 64 65 20 75 73 | 65 73 20 74 68 65 20 75 | code us|es the u|
|00002760| 6e 69 76 65 72 73 61 6c | 20 68 65 61 64 65 72 20 |niversal| header |
|00002770| 66 69 6c 65 73 20 74 68 | 61 74 20 61 72 65 20 64 |files th|at are d|
|00002780| 69 73 63 75 73 73 65 64 | 20 69 6e 20 74 68 65 20 |iscussed| in the |
|00002790| d2 4d 61 6b 69 6e 67 20 | 74 68 65 20 4c 65 61 70 |.Making |the Leap|
|000027a0| 20 74 6f 20 50 6f 77 65 | 72 50 43 d3 20 61 72 74 | to Powe|rPC. art|
|000027b0| 69 63 6c 65 20 69 6e 20 | 49 73 73 75 65 20 31 36 |icle in |Issue 16|
|000027c0| 20 61 6e 64 20 61 72 65 | 20 6f 6e 20 74 68 69 73 | and are| on this|
|000027d0| 20 69 73 73 75 65 d5 73 | 20 43 44 2e 0d 57 65 20 | issue.s| CD..We |
|000027e0| 72 65 63 6f 6d 6d 65 6e | 64 20 75 73 69 6e 67 20 |recommen|d using |
|000027f0| 43 61 6c 6c 55 6e 69 76 | 65 72 73 61 6c 50 72 6f |CallUniv|ersalPro|
|00002800| 63 20 69 6e 20 79 6f 75 | 72 20 73 6f 75 72 63 65 |c in you|r source|
|00002810| 20 63 6f 64 65 20 28 6f | 72 20 6f 6e 65 20 6f 66 | code (o|r one of|
|00002820| 20 69 74 73 20 73 70 65 | 63 69 66 69 63 20 76 61 | its spe|cific va|
|00002830| 72 69 61 6e 74 73 2c 20 | 6c 69 6b 65 20 43 61 6c |riants, |like Cal|
|00002840| 6c 41 63 74 69 76 61 74 | 65 48 61 6e 64 6c 65 72 |lActivat|eHandler|
|00002850| 50 72 6f 63 20 69 6e 20 | 74 68 65 20 66 6c 6f 61 |Proc in |the floa|
|00002860| 74 69 6e 67 20 77 69 6e | 64 6f 77 73 20 63 6f 64 |ting win|dows cod|
|00002870| 65 29 20 74 6f 20 61 6c | 6c 6f 77 20 66 6f 72 20 |e) to al|low for |
|00002880| 67 72 65 61 74 65 72 20 | 70 6f 72 74 61 62 69 6c |greater |portabil|
|00002890| 69 74 79 20 6f 66 20 79 | 6f 75 72 20 73 6f 75 72 |ity of y|our sour|
|000028a0| 63 65 20 63 6f 64 65 20 | 62 65 74 77 65 65 6e 20 |ce code |between |
|000028b0| 70 6c 61 74 66 6f 72 6d | 73 2e 20 46 6f 72 20 61 |platform|s. For a|
|000028c0| 20 64 65 74 61 69 6c 65 | 64 20 65 78 70 6c 61 6e | detaile|d explan|
|000028d0| 61 74 69 6f 6e 20 6f 66 | 20 75 73 69 6e 67 20 43 |ation of| using C|
|000028e0| 61 6c 6c 55 6e 69 76 65 | 72 73 61 6c 50 72 6f 63 |allUnive|rsalProc|
|000028f0| 20 0d 61 6e 64 20 55 6e | 69 76 65 72 73 61 6c 50 | .and Un|iversalP|
|00002900| 72 6f 63 50 74 72 73 2c | 20 63 68 65 63 6b 20 6f |rocPtrs,| check o|
|00002910| 75 74 20 74 68 65 20 61 | 66 6f 72 65 6d 65 6e 74 |ut the a|forement|
|00002920| 69 6f 6e 65 64 20 61 72 | 74 69 63 6c 65 20 69 6e |ioned ar|ticle in|
|00002930| 20 49 73 73 75 65 20 31 | 36 2e 20 0d d1 20 44 65 | Issue 1|6. .. De|
|00002940| 61 6e 20 59 75 0d 44 45 | 53 4b 54 4f 50 20 46 49 |an Yu.DE|SKTOP FI|
|00002950| 4c 45 53 20 52 45 44 55 | 58 0d 49 20 6c 69 6b 65 |LES REDU|X.I like|
|00002960| 64 20 49 73 73 75 65 20 | 31 35 d5 73 20 50 75 7a |d Issue |15.s Puz|
|00002970| 7a 6c 65 20 50 61 67 65 | 2c 20 61 62 6f 75 74 20 |zle Page|, about |
|00002980| 74 68 65 20 64 61 6d 61 | 67 65 64 20 64 65 73 6b |the dama|ged desk|
|00002990| 74 6f 70 20 66 69 6c 65 | 73 2e 20 49 d5 76 65 20 |top file|s. I.ve |
|000029a0| 73 65 65 6e 20 74 68 69 | 73 20 62 75 67 20 6f 66 |seen thi|s bug of|
|000029b0| 74 65 6e 2c 20 73 69 6e | 63 65 20 49 20 66 69 78 |ten, sin|ce I fix|
|000029c0| 20 61 20 6c 6f 74 20 6f | 66 20 64 61 6d 61 67 65 | a lot o|f damage|
|000029d0| 64 20 68 61 72 64 20 64 | 69 73 6b 73 2e 20 0d 59 |d hard d|isks. .Y|
|000029e0| 6f 75 20 70 72 6f 62 61 | 62 6c 79 20 6b 6e 6f 77 |ou proba|bly know|
|000029f0| 20 74 68 69 73 2c 20 62 | 75 74 20 69 66 20 74 68 | this, b|ut if th|
|00002a00| 65 20 64 65 73 6b 74 6f | 70 20 66 69 6c 65 73 20 |e deskto|p files |
|00002a10| 67 65 74 20 68 6f 73 65 | 64 20 69 6e 20 61 20 63 |get hose|d in a c|
|00002a20| 65 72 74 61 69 6e 20 77 | 61 79 2c 20 72 65 62 75 |ertain w|ay, rebu|
|00002a30| 69 6c 64 69 6e 67 20 74 | 68 65 6d 20 69 6e 20 74 |ilding t|hem in t|
|00002a40| 68 65 20 46 69 6e 64 65 | 72 20 77 6f 6e d5 74 20 |he Finde|r won.t |
|00002a50| 66 69 78 20 74 68 65 6d | 2e 20 59 6f 75 20 68 61 |fix them|. You ha|
|00002a60| 76 65 20 74 6f 20 64 65 | 6c 65 74 65 20 74 68 65 |ve to de|lete the|
|00002a70| 6d 20 28 6f 72 20 72 65 | 6e 61 6d 65 20 74 68 65 |m (or re|name the|
|00002a80| 6d 29 20 74 6f 20 67 65 | 74 20 74 68 65 20 46 69 |m) to ge|t the Fi|
|00002a90| 6e 64 65 72 20 74 6f 20 | 62 75 69 6c 64 20 6e 65 |nder to |build ne|
|00002aa0| 77 20 66 69 6c 65 73 20 | 66 72 6f 6d 20 73 63 72 |w files |from scr|
|00002ab0| 61 74 63 68 2e 20 0d 41 | 75 74 6f 44 6f 75 62 6c |atch. .A|utoDoubl|
|00002ac0| 65 72 20 63 6f 6d 65 73 | 20 77 69 74 68 20 61 20 |er comes| with a |
|00002ad0| 6c 69 74 74 6c 65 20 75 | 74 69 6c 69 74 79 20 63 |little u|tility c|
|00002ae0| 61 6c 6c 65 64 20 44 65 | 73 6b 74 6f 70 20 52 65 |alled De|sktop Re|
|00002af0| 73 65 74 20 6a 75 73 74 | 20 66 6f 72 20 64 65 6c |set just| for del|
|00002b00| 65 74 69 6e 67 20 74 68 | 65 20 64 65 73 6b 74 6f |eting th|e deskto|
|00002b10| 70 20 66 69 6c 65 73 2e | 0d d1 20 44 61 76 69 64 |p files.|.. David|
|00002b20| 20 53 68 61 79 65 72 0d | 49 20 64 69 64 6e d5 74 | Shayer.|I didn.t|
|00002b30| 20 6b 6e 6f 77 20 74 68 | 69 73 20 77 68 65 6e 20 | know th|is when |
|00002b40| 49 20 77 72 6f 74 65 20 | 74 68 61 74 20 50 75 7a |I wrote |that Puz|
|00002b50| 7a 6c 65 20 50 61 67 65 | 2c 20 62 75 74 20 79 6f |zle Page|, but yo|
|00002b60| 75 d5 72 65 20 72 69 67 | 68 74 2e 20 57 68 65 6e |u.re rig|ht. When|
|00002b70| 20 74 68 65 20 64 65 73 | 6b 74 6f 70 20 66 69 6c | the des|ktop fil|
|00002b80| 65 20 67 65 74 73 20 64 | 61 6d 61 67 65 64 20 74 |e gets d|amaged t|
|00002b90| 6f 20 74 68 65 20 70 6f | 69 6e 74 20 77 68 65 72 |o the po|int wher|
|00002ba0| 65 20 74 68 65 20 46 69 | 6c 65 20 4d 61 6e 61 67 |e the Fi|le Manag|
|00002bb0| 65 72 20 63 61 6e d5 74 | 20 6f 70 65 6e 20 69 74 |er can.t| open it|
|00002bc0| 2c 20 74 68 65 20 46 69 | 6e 64 65 72 20 63 61 6e |, the Fi|nder can|
|00002bd0| d5 74 20 72 65 62 75 69 | 6c 64 20 74 68 65 20 66 |.t rebui|ld the f|
|00002be0| 69 6c 65 2c 20 73 6f 20 | 79 6f 75 20 68 61 76 65 |ile, so |you have|
|00002bf0| 20 74 6f 20 74 68 72 6f | 77 20 69 74 20 61 77 61 | to thro|w it awa|
|00002c00| 79 20 6f 72 20 72 65 6e | 61 6d 65 20 69 74 2e 0d |y or ren|ame it..|
|00002c10| 54 68 61 6e 6b 73 20 66 | 6f 72 20 74 68 65 20 66 |Thanks f|or the f|
|00002c20| 65 65 64 62 61 63 6b 2e | 0d d1 20 4b 6f 6e 73 74 |eedback.|.. Konst|
|00002c30| 61 6e 74 69 6e 20 4f 74 | 68 6d 65 72 0d 09 0d 0d |antin Ot|hmer....|
|00002c40| 55 53 49 4e 47 20 50 52 | 4f 54 4f 20 54 45 4d 50 |USING PR|OTO TEMP|
|00002c50| 4c 41 54 45 53 20 4f 4e | 20 54 48 45 20 4e 45 57 |LATES ON| THE NEW|
|00002c60| 54 4f 4e 0d 48 41 52 52 | 59 20 52 2e 20 43 48 45 |TON.HARR|Y R. CHE|
|00002c70| 53 4c 45 59 0d 50 72 6f | 74 6f 20 74 65 6d 70 6c |SLEY.Pro|to templ|
|00002c80| 61 74 65 73 20 61 72 65 | 20 61 20 63 65 6e 74 72 |ates are| a centr|
|00002c90| 61 6c 20 66 65 61 74 75 | 72 65 20 6f 66 20 74 68 |al featu|re of th|
|00002ca0| 65 20 4e 65 77 74 6f 6e | 20 64 65 76 65 6c 6f 70 |e Newton| develop|
|00002cb0| 6d 65 6e 74 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |ment env|ironment|
|00002cc0| 2e 20 41 6c 6c 20 4e 65 | 77 74 6f 6e 20 61 70 70 |. All Ne|wton app|
|00002cd0| 6c 69 63 61 74 69 6f 6e | 73 20 75 73 65 20 62 75 |lication|s use bu|
|00002ce0| 69 6c 74 2d 69 6e 20 70 | 72 6f 74 6f 74 79 70 65 |ilt-in p|rototype|
|00002cf0| 73 2c 20 61 6e 64 20 64 | 65 76 65 6c 6f 70 65 72 |s, and d|eveloper|
|00002d00| 73 20 63 61 6e 20 61 6c | 73 6f 20 77 72 69 74 65 |s can al|so write|
|00002d10| 20 74 68 65 69 72 20 6f | 77 6e 20 61 70 70 6c 69 | their o|wn appli|
|00002d20| 63 61 74 69 6f 6e 2d 73 | 70 65 63 69 66 69 63 20 |cation-s|pecific |
|00002d30| 70 72 6f 74 6f 74 79 70 | 65 73 2e 20 54 68 69 73 |prototyp|es. This|
|00002d40| 20 61 72 74 69 63 6c 65 | 20 75 73 65 73 20 70 72 | article| uses pr|
|00002d50| 6f 74 6f 20 74 65 6d 70 | 6c 61 74 65 73 20 69 6e |oto temp|lates in|
|00002d60| 20 74 68 65 20 64 65 73 | 69 67 6e 20 6f 66 20 61 | the des|ign of a|
|00002d70| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 74 68 |n applic|ation th|
|00002d80| 61 74 20 70 6c 61 79 73 | 20 61 20 66 65 77 20 73 |at plays| a few s|
|00002d90| 69 6d 70 6c 65 20 67 61 | 6d 65 73 2e 20 46 6f 72 |imple ga|mes. For|
|00002da0| 20 6e 6f 6e 2d 4e 65 77 | 74 6f 6e 20 64 65 76 65 | non-New|ton deve|
|00002db0| 6c 6f 70 65 72 73 20 69 | 74 20 72 65 76 65 61 6c |lopers i|t reveal|
|00002dc0| 73 20 73 6f 6d 65 20 6f | 66 20 74 68 65 20 66 6c |s some o|f the fl|
|00002dd0| 61 76 6f 72 20 6f 66 20 | 64 65 73 69 67 6e 69 6e |avor of |designin|
|00002de0| 67 20 61 6e 64 20 77 72 | 69 74 69 6e 67 20 4e 65 |g and wr|iting Ne|
|00002df0| 77 74 6f 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |wton app|lication|
|00002e00| 73 2e 0d 41 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |s..An ap|plicatio|
|00002e10| 6e 20 6f 66 74 65 6e 20 | 69 6e 63 6c 75 64 65 73 |n often |includes|
|00002e20| 20 6d 75 6c 74 69 70 6c | 65 20 69 6e 73 74 61 6e | multipl|e instan|
|00002e30| 63 65 73 20 6f 66 20 61 | 20 64 65 73 69 67 6e 20 |ces of a| design |
|00002e40| 65 6c 65 6d 65 6e 74 2c | 20 77 69 74 68 20 6f 6e |element,| with on|
|00002e50| 6c 79 20 6d 69 6e 6f 72 | 20 76 61 72 69 61 74 69 |ly minor| variati|
|00002e60| 6f 6e 73 20 61 6d 6f 6e | 67 20 74 68 65 6d 2e 20 |ons amon|g them. |
|00002e70| 49 6e 20 6f 62 6a 65 63 | 74 2d 6f 72 69 65 6e 74 |In objec|t-orient|
|00002e80| 65 64 20 73 79 73 74 65 | 6d 73 2c 20 69 74 d5 73 |ed syste|ms, it.s|
|00002e90| 20 70 6f 73 73 69 62 6c | 65 20 74 6f 20 73 68 61 | possibl|e to sha|
|00002ea0| 72 65 20 74 68 65 20 63 | 6f 6d 6d 6f 6e 20 70 6f |re the c|ommon po|
|00002eb0| 72 74 69 6f 6e 73 20 6f | 66 20 74 68 65 20 64 65 |rtions o|f the de|
|00002ec0| 73 69 67 6e 20 61 6d 6f | 6e 67 20 73 65 76 65 72 |sign amo|ng sever|
|00002ed0| 61 6c 20 64 69 66 66 65 | 72 65 6e 74 20 70 69 65 |al diffe|rent pie|
|00002ee0| 63 65 73 20 6f 66 20 74 | 68 65 20 61 70 70 6c 69 |ces of t|he appli|
|00002ef0| 63 61 74 69 6f 6e 20 62 | 79 20 75 73 69 6e 67 20 |cation b|y using |
|00002f00| 69 6e 68 65 72 69 74 61 | 6e 63 65 2e 20 4f 6e 20 |inherita|nce. On |
|00002f10| 74 68 65 20 4e 65 77 74 | 6f 6e 2c 20 79 6f 75 20 |the Newt|on, you |
|00002f20| 63 61 6e 20 64 6f 20 74 | 68 69 73 20 77 69 74 68 |can do t|his with|
|00002f30| 20 70 72 6f 74 6f 20 74 | 65 6d 70 6c 61 74 65 73 | proto t|emplates|
|00002f40| 2c 20 77 68 69 63 68 20 | 6c 65 74 20 79 6f 75 20 |, which |let you |
|00002f50| 72 65 75 73 65 20 74 68 | 65 20 64 65 66 69 6e 69 |reuse th|e defini|
|00002f60| 74 69 6f 6e 20 6f 66 20 | 61 20 70 61 72 74 69 63 |tion of |a partic|
|00002f70| 75 6c 61 72 20 74 79 70 | 65 20 6f 66 20 76 69 65 |ular typ|e of vie|
|00002f80| 77 20 76 65 72 79 20 65 | 66 66 69 63 69 65 6e 74 |w very e|fficient|
|00002f90| 6c 79 2e 20 53 69 6e 63 | 65 20 76 69 65 77 73 20 |ly. Sinc|e views |
|00002fa0| 61 72 65 20 74 68 65 20 | 62 61 73 69 63 20 76 69 |are the |basic vi|
|00002fb0| 73 75 61 6c 20 61 6e 64 | 20 66 75 6e 63 74 69 6f |sual and| functio|
|00002fc0| 6e 61 6c 20 65 6c 65 6d | 65 6e 74 73 20 6f 66 20 |nal elem|ents of |
|00002fd0| 74 68 65 20 4e 65 77 74 | 6f 6e 20 75 73 65 72 20 |the Newt|on user |
|00002fe0| 69 6e 74 65 72 66 61 63 | 65 2c 20 70 72 6f 74 6f |interfac|e, proto|
|00002ff0| 20 74 65 6d 70 6c 61 74 | 65 73 20 67 69 76 65 20 | templat|es give |
|00003000| 79 6f 75 20 61 20 76 65 | 72 79 20 70 6f 77 65 72 |you a ve|ry power|
|00003010| 66 75 6c 20 61 62 69 6c | 69 74 79 20 74 6f 20 73 |ful abil|ity to s|
|00003020| 68 61 72 65 20 61 6e 64 | 20 72 65 75 73 65 20 75 |hare and| reuse u|
|00003030| 73 65 72 20 69 6e 74 65 | 72 66 61 63 65 20 66 65 |ser inte|rface fe|
|00003040| 61 74 75 72 65 73 2e 0d | 42 75 69 6c 74 2d 69 6e |atures..|Built-in|
|00003050| 20 70 72 6f 74 6f 20 74 | 65 6d 70 6c 61 74 65 73 | proto t|emplates|
|00003060| 20 73 75 70 70 6c 79 20 | 6d 6f 73 74 20 6f 66 20 | supply |most of |
|00003070| 74 68 65 20 63 6f 6d 6d | 6f 6e 20 76 69 65 77 73 |the comm|on views|
|00003080| 20 73 65 65 6e 20 69 6e | 20 4e 65 77 74 6f 6e 20 | seen in| Newton |
|00003090| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 20 d1 20 70 |applicat|ions . p|
|000030a0| 75 73 68 20 62 75 74 74 | 6f 6e 73 2c 20 70 6f 70 |ush butt|ons, pop|
|000030b0| 2d 75 70 20 6d 65 6e 75 | 73 2c 20 63 68 65 63 6b |-up menu|s, check|
|000030c0| 62 6f 78 65 73 2c 20 72 | 61 64 69 6f 20 62 75 74 |boxes, r|adio but|
|000030d0| 74 6f 6e 73 2c 20 61 6e | 64 20 73 6f 20 6f 6e 2e |tons, an|d so on.|
|000030e0| 20 0d 49 6e 20 61 64 64 | 69 74 69 6f 6e 2c 20 64 | .In add|ition, d|
|000030f0| 65 76 65 6c 6f 70 65 72 | 73 20 6f 66 20 4e 65 77 |eveloper|s of New|
|00003100| 74 6f 6e 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |ton appl|ications|
|00003110| 20 63 61 6e 20 64 65 66 | 69 6e 65 20 74 68 65 69 | can def|ine thei|
|00003120| 72 20 6f 77 6e 20 70 72 | 6f 74 6f 20 74 65 6d 70 |r own pr|oto temp|
|00003130| 6c 61 74 65 73 2e 20 54 | 68 65 73 65 20 74 65 6d |lates. T|hese tem|
|00003140| 70 6c 61 74 65 73 20 61 | 6c 6c 6f 77 20 66 6f 72 |plates a|llow for|
|00003150| 20 76 65 72 79 20 63 6f | 6d 70 61 63 74 20 64 65 | very co|mpact de|
|00003160| 73 69 67 6e 73 2c 20 73 | 68 6f 72 74 65 72 20 64 |signs, s|horter d|
|00003170| 65 76 65 6c 6f 70 6d 65 | 6e 74 20 74 69 6d 65 73 |evelopme|nt times|
|00003180| 2c 20 65 61 73 69 65 72 | 20 6d 61 69 6e 74 65 6e |, easier| mainten|
|00003190| 61 6e 63 65 2c 20 61 6e | 64 20 73 6d 61 6c 6c 65 |ance, an|d smalle|
|000031a0| 72 20 66 69 6e 69 73 68 | 65 64 20 61 70 70 6c 69 |r finish|ed appli|
|000031b0| 63 61 74 69 6f 6e 73 2e | 0d 49 6e 20 74 68 69 73 |cations.|.In this|
|000031c0| 20 61 72 74 69 63 6c 65 | 20 77 65 20 64 65 76 65 | article| we deve|
|000031d0| 6c 6f 70 20 61 20 67 61 | 6d 65 20 61 70 70 6c 69 |lop a ga|me appli|
|000031e0| 63 61 74 69 6f 6e 20 66 | 6f 72 20 74 68 65 20 4e |cation f|or the N|
|000031f0| 65 77 74 6f 6e 20 63 61 | 6c 6c 65 64 20 54 61 70 |ewton ca|lled Tap|
|00003200| 42 6f 61 72 64 2e 20 54 | 61 70 42 6f 61 72 64 20 |Board. T|apBoard |
|00003210| 69 73 20 61 63 74 75 61 | 6c 6c 79 20 74 68 72 65 |is actua|lly thre|
|00003220| 65 20 67 61 6d 65 73 2c | 20 65 61 63 68 20 77 69 |e games,| each wi|
|00003230| 74 68 20 69 74 73 20 6f | 77 6e 20 73 74 79 6c 65 |th its o|wn style|
|00003240| 20 6f 66 20 62 6f 61 72 | 64 2c 20 72 75 6c 65 73 | of boar|d, rules|
|00003250| 20 6f 66 20 70 6c 61 79 | 2c 20 61 6e 64 20 61 6c | of play|, and al|
|00003260| 67 6f 72 69 74 68 6d 20 | 66 6f 72 20 63 6f 6d 70 |gorithm |for comp|
|00003270| 75 74 65 72 2d 67 65 6e | 65 72 61 74 65 64 20 6d |uter-gen|erated m|
|00003280| 6f 76 65 73 2e 20 54 68 | 65 20 67 61 6d 65 73 20 |oves. Th|e games |
|00003290| 68 61 76 65 20 6d 61 6e | 79 20 65 6c 65 6d 65 6e |have man|y elemen|
|000032a0| 74 73 20 69 6e 20 63 6f | 6d 6d 6f 6e 2c 20 61 6e |ts in co|mmon, an|
|000032b0| 64 20 74 68 65 73 65 20 | 63 61 6e 20 62 65 20 61 |d these |can be a|
|000032c0| 62 73 74 72 61 63 74 65 | 64 20 69 6e 74 6f 20 61 |bstracte|d into a|
|000032d0| 20 70 72 6f 74 6f 20 74 | 65 6d 70 6c 61 74 65 20 | proto t|emplate |
|000032e0| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 74 68 65 20 73 |containi|ng the s|
|000032f0| 68 61 72 65 64 20 61 73 | 70 65 63 74 73 20 6f 66 |hared as|pects of|
|00003300| 20 74 68 65 20 64 65 73 | 69 67 6e 2e 20 59 6f 75 | the des|ign. You|
|00003310| d5 6c 6c 20 66 69 6e 64 | 20 6d 75 63 68 20 6f 66 |.ll find| much of|
|00003320| 20 74 68 65 20 63 6f 64 | 65 20 66 6f 72 20 54 61 | the cod|e for Ta|
|00003330| 70 42 6f 61 72 64 20 69 | 6e 20 74 68 65 20 61 72 |pBoard i|n the ar|
|00003340| 74 69 63 6c 65 3b 20 74 | 68 65 20 63 6f 6d 70 6c |ticle; t|he compl|
|00003350| 65 74 65 20 73 6f 75 72 | 63 65 20 63 6f 64 65 20 |ete sour|ce code |
|00003360| 63 61 6e 20 62 65 20 66 | 6f 75 6e 64 20 6f 6e 20 |can be f|ound on |
|00003370| 74 68 69 73 20 69 73 73 | 75 65 d5 73 20 43 44 2e |this iss|ue.s CD.|
|00003380| 20 0d 49 66 20 79 6f 75 | d5 76 65 20 6e 65 76 65 | .If you|.ve neve|
|00003390| 72 20 77 72 69 74 74 65 | 6e 20 61 20 4e 65 77 74 |r writte|n a Newt|
|000033a0| 6f 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2c 20 |on appli|cation, |
|000033b0| 73 65 65 20 d2 28 53 6c | 69 67 68 74 6c 79 29 20 |see .(Sl|ightly) |
|000033c0| 49 6e 73 69 64 65 20 4e | 65 77 74 6f 6e 20 50 72 |Inside N|ewton Pr|
|000033d0| 6f 67 72 61 6d 6d 69 6e | 67 d3 20 66 6f 72 20 61 |ogrammin|g. for a|
|000033e0| 6e 20 69 6e 74 72 6f 64 | 75 63 74 69 6f 6e 20 74 |n introd|uction t|
|000033f0| 6f 20 74 68 65 20 64 65 | 76 65 6c 6f 70 6d 65 6e |o the de|velopmen|
|00003400| 74 20 70 72 6f 63 65 73 | 73 20 61 6e 64 20 73 6f |t proces|s and so|
|00003410| 6d 65 20 6f 66 20 74 68 | 65 20 4e 65 77 74 6f 6e |me of th|e Newton|
|00003420| 20 74 65 72 6d 69 6e 6f | 6c 6f 67 79 20 74 68 61 | termino|logy tha|
|00003430| 74 d5 73 20 75 73 65 64 | 20 69 6e 20 74 68 69 73 |t.s used| in this|
|00003440| 20 61 72 74 69 63 6c 65 | 2e 0d 0d 0d 0d 28 53 4c | article|.....(SL|
|00003450| 49 47 48 54 4c 59 29 20 | 49 4e 53 49 44 45 20 4e |IGHTLY) |INSIDE N|
|00003460| 45 57 54 4f 4e 20 50 52 | 4f 47 52 41 4d 4d 49 4e |EWTON PR|OGRAMMIN|
|00003470| 47 0d 42 59 20 47 52 45 | 47 47 20 57 49 4c 4c 49 |G.BY GRE|GG WILLI|
|00003480| 41 4d 53 09 09 0d 50 72 | 6f 67 72 61 6d 6d 69 6e |AMS...Pr|ogrammin|
|00003490| 67 20 74 68 65 20 4e 65 | 77 74 6f 6e 20 69 73 20 |g the Ne|wton is |
|000034a0| 64 69 66 66 65 72 65 6e | 74 20 d1 20 61 6e 64 20 |differen|t . and |
|000034b0| 49 20 6d 65 61 6e 20 74 | 68 61 74 20 0d 69 6e 20 |I mean t|hat .in |
|000034c0| 61 20 67 6f 6f 64 20 73 | 65 6e 73 65 2e 20 4f 6e |a good s|ense. On|
|000034d0| 63 65 20 79 6f 75 20 64 | 69 67 65 73 74 20 74 68 |ce you d|igest th|
|000034e0| 65 20 4e 65 77 74 6f 6e | 20 64 6f 63 75 6d 65 6e |e Newton| documen|
|000034f0| 74 61 74 69 6f 6e 2c 20 | 79 6f 75 20 63 61 6e 20 |tation, |you can |
|00003500| 63 72 65 61 74 65 20 61 | 20 73 69 6d 70 6c 65 20 |create a| simple |
|00003510| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 61 6e 64 20 |applicat|ion and |
|00003520| 68 61 76 65 20 69 74 20 | 72 75 6e 6e 69 6e 67 20 |have it |running |
|00003530| 6f 6e 20 61 20 4e 65 77 | 74 6f 6e 20 69 6e 20 61 |on a New|ton in a|
|00003540| 62 6f 75 74 20 31 35 20 | 6d 69 6e 75 74 65 73 2e |bout 15 |minutes.|
|00003550| 20 54 68 65 20 4e 65 77 | 74 6f 6e 20 64 65 76 65 | The New|ton deve|
|00003560| 6c 6f 70 6d 65 6e 74 20 | 70 72 6f 63 65 73 73 20 |lopment |process |
|00003570| 65 6e 63 6f 75 72 61 67 | 65 73 20 6c 6f 74 73 20 |encourag|es lots |
|00003580| 6f 66 20 71 75 69 63 6b | 20 63 6f 64 65 2f 63 6f |of quick| code/co|
|00003590| 6d 70 69 6c 65 2f 64 65 | 62 75 67 20 63 79 63 6c |mpile/de|bug cycl|
|000035a0| 65 73 20 d1 20 67 6f 6f | 64 20 66 6f 72 20 74 68 |es . goo|d for th|
|000035b0| 6f 73 65 20 6f 66 20 75 | 73 20 77 68 6f 20 6e 65 |ose of u|s who ne|
|000035c0| 65 64 20 70 6f 73 69 74 | 69 76 65 20 72 65 69 6e |ed posit|ive rein|
|000035d0| 66 6f 72 63 65 6d 65 6e | 74 20 6f 6e 20 61 20 72 |forcemen|t on a r|
|000035e0| 65 67 75 6c 61 72 20 62 | 61 73 69 73 20 d1 20 61 |egular b|asis . a|
|000035f0| 6e 64 20 74 68 65 20 63 | 79 63 6c 65 20 69 73 20 |nd the c|ycle is |
|00003600| 73 68 6f 72 74 20 65 6e | 6f 75 67 68 20 74 68 61 |short en|ough tha|
|00003610| 74 20 79 6f 75 20 64 6f | 6e d5 74 20 6e 6f 74 69 |t you do|n.t noti|
|00003620| 63 65 20 61 20 64 65 6c | 61 79 2e 0d 4f 56 45 52 |ce a del|ay..OVER|
|00003630| 56 49 45 57 0d 42 65 66 | 6f 72 65 20 49 20 64 65 |VIEW.Bef|ore I de|
|00003640| 73 63 72 69 62 65 20 68 | 6f 77 20 61 20 4e 65 77 |scribe h|ow a New|
|00003650| 74 6f 6e 20 70 72 6f 67 | 72 61 6d 20 77 6f 72 6b |ton prog|ram work|
|00003660| 73 2c 20 68 65 72 65 d5 | 73 20 61 6e 20 6f 76 65 |s, here.|s an ove|
|00003670| 72 76 69 65 77 20 6f 66 | 20 74 68 65 20 64 65 76 |rview of| the dev|
|00003680| 65 6c 6f 70 6d 65 6e 74 | 20 70 72 6f 63 65 73 73 |elopment| process|
|00003690| 2e 20 54 6f 20 63 72 65 | 61 74 65 20 61 20 4e 65 |. To cre|ate a Ne|
|000036a0| 77 74 6f 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |wton app|lication|
|000036b0| 2c 20 61 6c 6c 20 79 6f | 75 20 6e 65 65 64 20 69 |, all yo|u need i|
|000036c0| 73 20 74 68 65 20 4e 65 | 77 74 6f 6e 20 54 6f 6f |s the Ne|wton Too|
|000036d0| 6c 6b 69 74 20 28 61 76 | 61 69 6c 61 62 6c 65 20 |lkit (av|ailable |
|000036e0| 66 72 6f 6d 20 41 50 44 | 41 29 2c 20 61 20 73 65 |from APD|A), a se|
|000036f0| 72 69 61 6c 20 63 61 62 | 6c 65 2c 20 61 20 36 38 |rial cab|le, a 68|
|00003700| 30 33 30 20 4d 61 63 69 | 6e 74 6f 73 68 20 77 69 |030 Maci|ntosh wi|
|00003710| 74 68 20 38 20 4d 42 20 | 6f 66 20 6d 65 6d 6f 72 |th 8 MB |of memor|
|00003720| 79 20 61 6e 64 20 33 32 | 2d 62 69 74 20 61 64 64 |y and 32|-bit add|
|00003730| 72 65 73 73 69 6e 67 2c | 20 61 6e 64 20 61 20 4e |ressing,| and a N|
|00003740| 65 77 74 6f 6e 2e 20 59 | 6f 75 20 63 72 65 61 74 |ewton. Y|ou creat|
|00003750| 65 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 20 77 |e your p|rogram w|
|00003760| 69 74 68 20 74 68 65 20 | 54 6f 6f 6c 6b 69 74 2c |ith the |Toolkit,|
|00003770| 20 63 6f 6d 70 69 6c 65 | 20 69 74 2c 20 61 6e 64 | compile| it, and|
|00003780| 20 74 68 65 6e 20 64 6f | 77 6e 6c 6f 61 64 20 69 | then do|wnload i|
|00003790| 74 20 74 6f 20 61 20 4e | 65 77 74 6f 6e 20 74 68 |t to a N|ewton th|
|000037a0| 61 74 d5 73 20 63 6f 6e | 6e 65 63 74 65 64 20 74 |at.s con|nected t|
|000037b0| 6f 20 79 6f 75 72 20 4d | 61 63 69 6e 74 6f 73 68 |o your M|acintosh|
|000037c0| 20 74 68 72 6f 75 67 68 | 20 61 20 73 65 72 69 61 | through| a seria|
|000037d0| 6c 20 70 6f 72 74 2e 20 | 59 6f 75 72 20 63 6f 6d |l port. |Your com|
|000037e0| 70 6c 65 74 65 64 20 61 | 70 70 6c 69 63 61 74 69 |pleted a|pplicati|
|000037f0| 6f 6e 20 61 70 70 65 61 | 72 73 20 69 6e 20 74 68 |on appea|rs in th|
|00003800| 65 20 45 78 74 72 61 73 | 20 64 72 61 77 65 72 2c |e Extras| drawer,|
|00003810| 20 6a 75 73 74 20 6c 69 | 6b 65 20 61 6e 79 20 6f | just li|ke any o|
|00003820| 74 68 65 72 20 74 68 69 | 72 64 2d 70 61 72 74 79 |ther thi|rd-party|
|00003830| 20 4e 65 77 74 6f 6e 20 | 61 70 70 6c 69 63 61 74 | Newton |applicat|
|00003840| 69 6f 6e 2e 20 0d 55 73 | 69 6e 67 20 74 6f 6f 6c |ion. .Us|ing tool|
|00003850| 73 20 66 72 6f 6d 20 61 | 20 66 6c 6f 61 74 69 6e |s from a| floatin|
|00003860| 67 20 77 69 6e 64 6f 77 | 20 63 61 6c 6c 65 64 20 |g window| called |
|00003870| 74 68 65 20 6c 61 79 6f | 75 74 20 70 61 6c 65 74 |the layo|ut palet|
|00003880| 74 65 2c 20 79 6f 75 20 | 64 72 61 77 20 74 68 65 |te, you |draw the|
|00003890| 20 6c 61 79 6f 75 74 20 | 6f 66 20 79 6f 75 72 20 | layout |of your |
|000038a0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 d1 20 77 68 |applicat|ion . wh|
|000038b0| 61 74 20 69 74 73 20 73 | 63 72 65 65 6e 73 20 73 |at its s|creens s|
|000038c0| 68 6f 75 6c 64 20 6c 6f | 6f 6b 20 6c 69 6b 65 20 |hould lo|ok like |
|000038d0| d1 20 69 6e 20 6c 61 79 | 6f 75 74 20 77 69 6e 64 |. in lay|out wind|
|000038e0| 6f 77 73 2e 20 4e 6f 74 | 20 6f 6e 6c 79 20 63 61 |ows. Not| only ca|
|000038f0| 6e 20 79 6f 75 20 72 65 | 75 73 65 20 74 68 65 20 |n you re|use the |
|00003900| 64 6f 7a 65 6e 73 20 6f | 66 20 75 73 65 72 20 69 |dozens o|f user i|
|00003910| 6e 74 65 72 66 61 63 65 | 20 64 65 66 69 6e 69 74 |nterface| definit|
|00003920| 69 6f 6e 73 20 74 68 61 | 74 20 74 68 65 20 4e 65 |ions tha|t the Ne|
|00003930| 77 74 6f 6e 20 54 6f 6f | 6c 6b 69 74 20 73 75 70 |wton Too|lkit sup|
|00003940| 70 6c 69 65 73 2c 20 79 | 6f 75 20 63 61 6e 20 63 |plies, y|ou can c|
|00003950| 72 65 61 74 65 20 79 6f | 75 72 20 6f 77 6e 20 63 |reate yo|ur own c|
|00003960| 75 73 74 6f 6d 20 70 72 | 6f 74 6f 20 74 65 6d 70 |ustom pr|oto temp|
|00003970| 6c 61 74 65 73 20 28 6d | 6f 72 65 20 6f 6e 20 70 |lates (m|ore on p|
|00003980| 72 6f 74 6f 20 74 65 6d | 70 6c 61 74 65 73 20 62 |roto tem|plates b|
|00003990| 65 6c 6f 77 29 2e 20 45 | 61 63 68 20 6c 61 79 6f |elow). E|ach layo|
|000039a0| 75 74 20 6f 72 20 63 75 | 73 74 6f 6d 20 70 72 6f |ut or cu|stom pro|
|000039b0| 74 6f 20 74 65 6d 70 6c | 61 74 65 20 69 73 20 73 |to templ|ate is s|
|000039c0| 74 6f 72 65 64 20 61 73 | 20 61 20 73 65 70 61 72 |tored as| a separ|
|000039d0| 61 74 65 20 66 69 6c 65 | 3b 20 61 6c 6c 20 6f 66 |ate file|; all of|
|000039e0| 20 74 68 65 73 65 20 66 | 69 6c 65 73 2c 20 70 6c | these f|iles, pl|
|000039f0| 75 73 20 6f 70 74 69 6f | 6e 61 6c 20 66 69 6c 65 |us optio|nal file|
|00003a00| 73 20 74 68 61 74 20 63 | 6f 6e 74 61 69 6e 20 74 |s that c|ontain t|
|00003a10| 68 65 20 4d 61 63 69 6e | 74 6f 73 68 2d 73 74 79 |he Macin|tosh-sty|
|00003a20| 6c 65 20 72 65 73 6f 75 | 72 63 65 73 20 79 6f 75 |le resou|rces you|
|00003a30| 72 20 70 72 6f 67 72 61 | 6d 20 6e 65 65 64 73 2c |r progra|m needs,|
|00003a40| 20 61 72 65 20 67 72 6f | 75 70 65 64 20 69 6e 74 | are gro|uped int|
|00003a50| 6f 20 77 68 61 74 d5 73 | 20 63 61 6c 6c 65 64 20 |o what.s| called |
|00003a60| 61 20 70 72 6f 6a 65 63 | 74 2e 20 0d 4f 6e 63 65 |a projec|t. .Once|
|00003a70| 20 79 6f 75 d5 76 65 20 | 64 72 61 77 6e 20 61 6c | you.ve |drawn al|
|00003a80| 6c 20 79 6f 75 72 20 76 | 69 65 77 73 2c 20 79 6f |l your v|iews, yo|
|00003a90| 75 20 63 61 6e 20 6f 70 | 65 6e 20 61 20 62 72 6f |u can op|en a bro|
|00003aa0| 77 73 65 72 20 77 69 6e | 64 6f 77 20 28 66 61 6d |wser win|dow (fam|
|00003ab0| 69 6c 69 61 72 20 74 6f | 20 75 73 65 72 73 20 6f |iliar to| users o|
|00003ac0| 66 20 6f 62 6a 65 63 74 | 2d 6f 72 69 65 6e 74 65 |f object|-oriente|
|00003ad0| 64 20 6c 61 6e 67 75 61 | 67 65 73 20 6c 69 6b 65 |d langua|ges like|
|00003ae0| 20 53 6d 61 6c 6c 74 61 | 6c 6b 20 61 6e 64 20 4c | Smallta|lk and L|
|00003af0| 49 53 50 29 2e 20 49 6e | 20 74 68 65 20 62 72 6f |ISP). In| the bro|
|00003b00| 77 73 65 72 20 77 69 6e | 64 6f 77 2c 20 79 6f 75 |wser win|dow, you|
|00003b10| 20 63 61 6e 20 61 64 64 | 20 61 6e 64 20 6d 6f 64 | can add| and mod|
|00003b20| 69 66 79 20 62 6f 74 68 | 20 63 6f 64 65 20 61 6e |ify both| code an|
|00003b30| 64 20 64 61 74 61 20 61 | 73 73 6f 63 69 61 74 65 |d data a|ssociate|
|00003b40| 64 20 77 69 74 68 20 74 | 68 65 20 6f 62 6a 65 63 |d with t|he objec|
|00003b50| 74 73 20 69 6e 20 79 6f | 75 72 20 70 72 6f 67 72 |ts in yo|ur progr|
|00003b60| 61 6d 2e 20 54 68 65 20 | 63 6f 64 65 20 79 6f 75 |am. The |code you|
|00003b70| 20 77 72 69 74 65 20 69 | 73 20 69 6e 20 61 20 6e | write i|s in a n|
|00003b80| 65 77 20 6c 61 6e 67 75 | 61 67 65 20 63 61 6c 6c |ew langu|age call|
|00003b90| 65 64 20 4e 65 77 74 6f | 6e 53 63 72 69 70 74 2c |ed Newto|nScript,|
|00003ba0| 20 77 68 69 63 68 20 69 | 73 20 61 20 73 69 6d 70 | which i|s a simp|
|00003bb0| 6c 65 20 62 75 74 20 73 | 6f 70 68 69 73 74 69 63 |le but s|ophistic|
|00003bc0| 61 74 65 64 20 73 79 6d | 62 6f 6c 69 63 20 6c 61 |ated sym|bolic la|
|00003bd0| 6e 67 75 61 67 65 20 77 | 69 74 68 20 61 20 50 61 |nguage w|ith a Pa|
|00003be0| 73 63 61 6c 2d 6c 69 6b | 65 20 73 79 6e 74 61 78 |scal-lik|e syntax|
|00003bf0| 2e 20 0d 09 4d 6f 73 74 | 20 6f 66 20 74 68 65 20 |. ..Most| of the |
|00003c00| 28 75 73 75 61 6c 6c 79 | 20 73 68 6f 72 74 29 20 |(usually| short) |
|00003c10| 72 6f 75 74 69 6e 65 73 | 20 79 6f 75 d5 6c 6c 20 |routines| you.ll |
|00003c20| 77 72 69 74 65 20 65 78 | 65 63 75 74 65 20 77 68 |write ex|ecute wh|
|00003c30| 65 6e 20 74 72 69 67 67 | 65 72 65 64 20 62 79 20 |en trigg|ered by |
|00003c40| 61 20 75 73 65 72 20 61 | 63 74 69 6f 6e 2c 20 6c |a user a|ction, l|
|00003c50| 69 6b 65 20 74 68 65 20 | 75 73 65 72 d5 73 20 74 |ike the |user.s t|
|00003c60| 61 70 70 69 6e 67 20 61 | 20 62 75 74 74 6f 6e 20 |apping a| button |
|00003c70| 6f 72 20 77 72 69 74 69 | 6e 67 20 69 6e 20 61 20 |or writi|ng in a |
|00003c80| 64 65 73 69 67 6e 61 74 | 65 64 20 61 72 65 61 2c |designat|ed area,|
|00003c90| 20 6f 72 20 62 79 20 61 | 20 73 79 73 74 65 6d 20 | or by a| system |
|00003ca0| 61 63 74 69 6f 6e 2e 20 | 59 6f 75 d5 72 65 20 61 |action. |You.re a|
|00003cb0| 6c 72 65 61 64 79 20 61 | 63 71 75 61 69 6e 74 65 |lready a|cquainte|
|00003cc0| 64 20 77 69 74 68 20 74 | 68 69 73 20 65 76 65 6e |d with t|his even|
|00003cd0| 74 2d 64 72 69 76 65 6e | 20 61 70 70 72 6f 61 63 |t-driven| approac|
|00003ce0| 68 20 66 72 6f 6d 20 79 | 6f 75 72 20 65 78 70 65 |h from y|our expe|
|00003cf0| 72 69 65 6e 63 65 20 69 | 6e 20 70 72 6f 67 72 61 |rience i|n progra|
|00003d00| 6d 6d 69 6e 67 20 66 6f | 72 20 74 68 65 20 4d 61 |mming fo|r the Ma|
|00003d10| 63 69 6e 74 6f 73 68 2e | 20 41 6e 64 20 69 66 20 |cintosh.| And if |
|00003d20| 79 6f 75 d5 76 65 20 62 | 65 65 6e 20 64 6f 69 6e |you.ve b|een doin|
|00003d30| 67 20 6f 62 6a 65 63 74 | 2d 6f 72 69 65 6e 74 65 |g object|-oriente|
|00003d40| 64 20 70 72 6f 67 72 61 | 6d 6d 69 6e 67 2c 20 74 |d progra|mming, t|
|00003d50| 68 65 20 69 64 65 61 20 | 6f 66 20 61 20 6e 65 74 |he idea |of a net|
|00003d60| 77 6f 72 6b 20 6f 66 20 | 63 6f 6f 70 65 72 61 74 |work of |cooperat|
|00003d70| 69 6e 67 20 73 6f 66 74 | 77 61 72 65 20 6f 62 6a |ing soft|ware obj|
|00003d80| 65 63 74 73 2c 20 72 61 | 74 68 65 72 20 74 68 61 |ects, ra|ther tha|
|00003d90| 6e 20 61 20 68 69 65 72 | 61 72 63 68 79 20 6f 66 |n a hier|archy of|
|00003da0| 20 72 6f 75 74 69 6e 65 | 73 20 65 78 65 63 75 74 | routine|s execut|
|00003db0| 65 64 20 62 79 20 61 20 | 70 72 6f 63 65 73 73 6f |ed by a |processo|
|00003dc0| 72 20 74 68 61 74 d5 73 | 20 61 6c 77 61 79 73 20 |r that.s| always |
|00003dd0| 69 6e 20 63 6f 6e 74 72 | 6f 6c 2c 20 69 73 20 61 |in contr|ol, is a|
|00003de0| 6c 73 6f 20 66 61 6d 69 | 6c 69 61 72 20 74 6f 20 |lso fami|liar to |
|00003df0| 79 6f 75 2e 0d 46 52 41 | 4d 45 53 20 41 4e 44 20 |you..FRA|MES AND |
|00003e00| 53 4c 4f 54 53 0d 4f 6e | 65 20 69 64 65 61 20 79 |SLOTS.On|e idea y|
|00003e10| 6f 75 20 6d 61 79 20 6e | 6f 74 20 62 65 20 66 61 |ou may n|ot be fa|
|00003e20| 6d 69 6c 69 61 72 20 77 | 69 74 68 2c 20 64 65 70 |miliar w|ith, dep|
|00003e30| 65 6e 64 69 6e 67 20 6f | 6e 20 77 68 65 74 68 65 |ending o|n whethe|
|00003e40| 72 20 79 6f 75 d5 76 65 | 20 75 73 65 64 20 6f 62 |r you.ve| used ob|
|00003e50| 6a 65 63 74 2d 6f 72 69 | 65 6e 74 65 64 20 6c 61 |ject-ori|ented la|
|00003e60| 6e 67 75 61 67 65 73 2c | 20 69 73 20 74 68 61 74 |nguages,| is that|
|00003e70| 20 6f 66 20 66 72 61 6d | 65 73 2e 20 41 72 74 69 | of fram|es. Arti|
|00003e80| 66 69 63 69 61 6c 20 69 | 6e 74 65 6c 6c 69 67 65 |ficial i|ntellige|
|00003e90| 6e 63 65 20 66 61 6e 61 | 74 69 63 73 20 77 69 6c |nce fana|tics wil|
|00003ea0| 6c 20 70 72 6f 62 61 62 | 6c 79 20 6b 69 6c 6c 20 |l probab|ly kill |
|00003eb0| 6d 65 2c 20 62 75 74 20 | 49 20 74 68 69 6e 6b 20 |me, but |I think |
|00003ec0| 6f 66 20 61 20 66 72 61 | 6d 65 20 61 73 20 6a 75 |of a fra|me as ju|
|00003ed0| 73 74 20 61 20 72 65 63 | 6f 72 64 20 6f 66 20 64 |st a rec|ord of d|
|00003ee0| 61 74 61 2c 20 61 6e 64 | 20 73 6c 6f 74 73 20 61 |ata, and| slots a|
|00003ef0| 73 20 77 68 61 74 20 6d | 6f 73 74 20 6f 66 20 75 |s what m|ost of u|
|00003f00| 73 20 63 61 6c 6c 20 72 | 65 63 6f 72 64 20 66 69 |s call r|ecord fi|
|00003f10| 65 6c 64 73 2e 20 48 6f | 77 65 76 65 72 2c 20 73 |elds. Ho|wever, s|
|00003f20| 6c 6f 74 73 20 69 6e 20 | 4e 65 77 74 6f 6e 53 63 |lots in |NewtonSc|
|00003f30| 72 69 70 74 20 61 72 65 | 20 6d 6f 72 65 20 76 65 |ript are| more ve|
|00003f40| 72 73 61 74 69 6c 65 20 | 74 68 61 6e 20 72 65 63 |rsatile |than rec|
|00003f50| 6f 72 64 20 66 69 65 6c | 64 73 20 69 6e 20 73 65 |ord fiel|ds in se|
|00003f60| 76 65 72 61 6c 20 77 61 | 79 73 2e 20 46 69 72 73 |veral wa|ys. Firs|
|00003f70| 74 2c 20 73 6c 6f 74 73 | 20 61 72 65 6e d5 74 20 |t, slots| aren.t |
|00003f80| 6c 69 6d 69 74 65 64 20 | 74 6f 20 6f 6e 65 20 74 |limited |to one t|
|00003f90| 79 70 65 20 6f 66 20 64 | 61 74 61 2e 20 28 4c 69 |ype of d|ata. (Li|
|00003fa0| 6b 65 20 4e 65 77 74 6f | 6e 20 76 61 72 69 61 62 |ke Newto|n variab|
|00003fb0| 6c 65 73 2c 20 73 6c 6f | 74 73 20 61 72 65 6e d5 |les, slo|ts aren.|
|00003fc0| 74 20 74 79 70 65 64 20 | 61 6e 64 20 63 61 6e 20 |t typed |and can |
|00003fd0| 68 6f 6c 64 2c 20 66 6f | 72 20 65 78 61 6d 70 6c |hold, fo|r exampl|
|00003fe0| 65 2c 20 61 6e 20 69 6e | 74 65 67 65 72 20 6f 6e |e, an in|teger on|
|00003ff0| 65 20 6d 69 6e 75 74 65 | 20 61 6e 64 20 61 20 66 |e minute| and a f|
|00004000| 72 61 6d 65 20 74 68 65 | 20 6e 65 78 74 2e 29 20 |rame the| next.) |
|00004010| 53 65 63 6f 6e 64 2c 20 | 79 6f 75 20 63 61 6e 20 |Second, |you can |
|00004020| 61 72 62 69 74 72 61 72 | 69 6c 79 20 61 64 64 20 |arbitrar|ily add |
|00004030| 6f 72 20 72 65 6d 6f 76 | 65 20 73 6c 6f 74 73 20 |or remov|e slots |
|00004040| 66 72 6f 6d 20 61 20 66 | 72 61 6d 65 20 61 74 20 |from a f|rame at |
|00004050| 61 6e 79 20 74 69 6d 65 | 2c 20 69 6e 63 6c 75 64 |any time|, includ|
|00004060| 69 6e 67 20 64 75 72 69 | 6e 67 20 70 72 6f 67 72 |ing duri|ng progr|
|00004070| 61 6d 20 65 78 65 63 75 | 74 69 6f 6e 2e 20 54 68 |am execu|tion. Th|
|00004080| 69 72 64 2c 20 79 6f 75 | 20 63 61 6e 20 61 63 63 |ird, you| can acc|
|00004090| 65 73 73 20 73 6c 6f 74 | 73 20 69 6e 64 69 72 65 |ess slot|s indire|
|000040a0| 63 74 6c 79 20 74 68 72 | 6f 75 67 68 20 70 61 74 |ctly thr|ough pat|
|000040b0| 68 20 65 78 70 72 65 73 | 73 69 6f 6e 73 3b 20 74 |h expres|sions; t|
|000040c0| 68 65 73 65 20 61 6c 6c | 6f 77 20 79 6f 75 20 74 |hese all|ow you t|
|000040d0| 6f 20 73 74 6f 72 65 20 | 70 61 72 74 20 6f 66 20 |o store |part of |
|000040e0| 61 20 73 6c 6f 74 d5 73 | 20 70 61 74 68 6e 61 6d |a slot.s| pathnam|
|000040f0| 65 20 69 6e 20 61 20 76 | 61 72 69 61 62 6c 65 2c |e in a v|ariable,|
|00004100| 20 74 68 75 73 20 6c 65 | 74 74 69 6e 67 20 74 68 | thus le|tting th|
|00004110| 65 20 63 6f 6e 74 65 6e | 74 73 20 6f 66 20 61 20 |e conten|ts of a |
|00004120| 76 61 72 69 61 62 6c 65 | 20 64 65 74 65 72 6d 69 |variable| determi|
|00004130| 6e 65 20 77 68 69 63 68 | 20 73 6c 6f 74 20 67 65 |ne which| slot ge|
|00004140| 74 73 20 61 63 63 65 73 | 73 65 64 2e 20 49 6e 20 |ts acces|sed. In |
|00004150| 4e 65 77 74 6f 6e 53 63 | 72 69 70 74 2c 20 61 20 |NewtonSc|ript, a |
|00004160| 66 72 61 6d 65 20 6c 6f | 6f 6b 73 20 6c 69 6b 65 |frame lo|oks like|
|00004170| 20 74 68 69 73 3a 20 0d | 7b 20 73 6c 6f 74 6e 61 | this: .|{ slotna|
|00004180| 6d 65 31 3a 20 76 61 6c | 75 65 31 2c 20 73 6c 6f |me1: val|ue1, slo|
|00004190| 74 6e 61 6d 65 32 3a 20 | 76 61 6c 75 65 32 2c 20 |tname2: |value2, |
|000041a0| 2e 2e 2e 2c 0d 09 73 6c | 6f 74 6e 61 6d 65 4e 3a |...,..sl|otnameN:|
|000041b0| 20 76 61 6c 75 65 4e 20 | 7d 0d 53 6c 6f 74 20 6e | valueN |}.Slot n|
|000041c0| 61 6d 65 73 20 63 61 6e | 20 62 65 20 6f 6d 69 74 |ames can| be omit|
|000041d0| 74 65 64 20 6f 72 20 6d | 65 6e 74 69 6f 6e 65 64 |ted or m|entioned|
|000041e0| 20 69 6e 20 61 6e 79 20 | 6f 72 64 65 72 2e 20 42 | in any |order. B|
|000041f0| 79 20 75 73 69 6e 67 20 | 74 68 65 20 73 6c 6f 74 |y using |the slot|
|00004200| 20 6e 61 6d 65 73 20 5f | 70 72 6f 74 6f 20 61 6e | names _|proto an|
|00004210| 64 20 5f 70 61 72 65 6e | 74 2c 20 79 6f 75 20 63 |d _paren|t, you c|
|00004220| 61 6e 20 63 72 65 61 74 | 65 20 64 61 74 61 20 73 |an creat|e data s|
|00004230| 74 72 75 63 74 75 72 65 | 73 20 74 68 61 74 20 65 |tructure|s that e|
|00004240| 78 68 69 62 69 74 20 4e | 65 77 74 6f 6e d5 73 20 |xhibit N|ewton.s |
|00004250| 66 6c 61 76 6f 72 20 6f | 66 20 6f 62 6a 65 63 74 |flavor o|f object|
|00004260| 2d 6f 72 69 65 6e 74 65 | 64 20 62 65 68 61 76 69 |-oriente|d behavi|
|00004270| 6f 72 2c 20 61 73 20 64 | 69 73 63 75 73 73 65 64 |or, as d|iscussed|
|00004280| 20 6c 61 74 65 72 20 69 | 6e 20 74 68 69 73 20 61 | later i|n this a|
|00004290| 72 74 69 63 6c 65 2e 0d | 54 6f 20 61 63 63 65 73 |rticle..|To acces|
|000042a0| 73 20 74 68 65 20 64 61 | 74 61 20 69 6e 20 61 20 |s the da|ta in a |
|000042b0| 66 72 61 6d 65 d5 73 20 | 73 6c 6f 74 2c 20 79 6f |frame.s |slot, yo|
|000042c0| 75 20 75 73 65 20 74 68 | 65 20 6e 6f 74 61 74 69 |u use th|e notati|
|000042d0| 6f 6e 0d 66 72 61 6d 65 | 6e 61 6d 65 2e 73 6c 6f |on.frame|name.slo|
|000042e0| 74 6e 61 6d 65 0d 09 0d | 0d 54 45 4d 50 4c 41 54 |tname...|.TEMPLAT|
|000042f0| 45 53 2c 20 56 49 45 57 | 53 2c 20 41 4e 44 20 50 |ES, VIEW|S, AND P|
|00004300| 52 4f 54 4f 53 0d 45 76 | 65 72 79 74 68 69 6e 67 |ROTOS.Ev|erything|
|00004310| 20 79 6f 75 20 73 65 65 | 20 6f 6e 20 74 68 65 20 | you see| on the |
|00004320| 4e 65 77 74 6f 6e 20 73 | 63 72 65 65 6e 20 69 73 |Newton s|creen is|
|00004330| 20 63 6f 6d 70 6f 73 65 | 64 20 6f 66 20 76 69 65 | compose|d of vie|
|00004340| 77 73 2e 20 41 20 76 69 | 65 77 20 63 61 6e 20 64 |ws. A vi|ew can d|
|00004350| 69 73 70 6c 61 79 2c 20 | 61 6d 6f 6e 67 20 6f 74 |isplay, |among ot|
|00004360| 68 65 72 20 74 68 69 6e | 67 73 2c 20 61 20 70 69 |her thin|gs, a pi|
|00004370| 63 74 75 72 65 2c 20 61 | 20 70 61 72 61 67 72 61 |cture, a| paragra|
|00004380| 70 68 20 6f 66 20 74 65 | 78 74 2c 20 61 6e 20 61 |ph of te|xt, an a|
|00004390| 72 65 61 20 66 6f 72 20 | 77 72 69 74 69 6e 67 20 |rea for |writing |
|000043a0| 6f 72 20 64 72 61 77 69 | 6e 67 2c 20 61 6e 20 6f |or drawi|ng, an o|
|000043b0| 6e 2d 73 63 72 65 65 6e | 20 6b 65 79 62 6f 61 72 |n-screen| keyboar|
|000043c0| 64 2c 20 61 20 63 61 6c | 65 6e 64 61 72 2d 6d 6f |d, a cal|endar-mo|
|000043d0| 6e 74 68 20 70 61 67 65 | 2c 20 61 20 70 6f 70 2d |nth page|, a pop-|
|000043e0| 75 70 20 6c 69 73 74 2c | 20 6f 72 20 61 20 67 61 |up list,| or a ga|
|000043f0| 75 67 65 20 28 77 68 69 | 63 68 20 69 73 20 6c 69 |uge (whi|ch is li|
|00004400| 6b 65 20 61 20 68 6f 72 | 69 7a 6f 6e 74 61 6c 20 |ke a hor|izontal |
|00004410| 74 68 65 72 6d 6f 6d 65 | 74 65 72 29 2e 20 0d 4d |thermome|ter). .M|
|00004420| 61 6e 79 20 6f 66 20 74 | 68 65 20 74 68 69 6e 67 |any of t|he thing|
|00004430| 73 20 74 68 61 74 20 79 | 6f 75 20 73 65 65 20 6f |s that y|ou see o|
|00004440| 6e 20 74 68 65 20 73 63 | 72 65 65 6e 20 61 72 65 |n the sc|reen are|
|00004450| 20 73 74 61 6e 64 61 72 | 64 20 70 72 65 66 61 62 | standar|d prefab|
|00004460| 72 69 63 61 74 65 64 20 | 75 73 65 72 20 69 6e 74 |ricated |user int|
|00004470| 65 72 66 61 63 65 20 65 | 6c 65 6d 65 6e 74 73 20 |erface e|lements |
|00004480| 62 75 69 6c 74 20 69 6e | 74 6f 20 74 68 65 20 4e |built in|to the N|
|00004490| 65 77 74 6f 6e 20 52 4f | 4d 20 61 6e 64 20 61 76 |ewton RO|M and av|
|000044a0| 61 69 6c 61 62 6c 65 20 | 74 6f 20 65 76 65 72 79 |ailable |to every|
|000044b0| 20 4e 65 77 74 6f 6e 20 | 64 65 76 65 6c 6f 70 65 | Newton |develope|
|000044c0| 72 2e 20 54 68 65 73 65 | 20 61 72 65 20 63 61 6c |r. These| are cal|
|000044d0| 6c 65 64 20 70 72 6f 74 | 6f 20 74 65 6d 70 6c 61 |led prot|o templa|
|000044e0| 74 65 73 2c 20 6f 72 20 | 70 72 6f 74 6f 73 20 66 |tes, or |protos f|
|000044f0| 6f 72 20 73 68 6f 72 74 | 2c 20 61 6e 64 20 74 68 |or short|, and th|
|00004500| 65 79 20 69 6e 63 6c 75 | 64 65 20 73 69 78 20 64 |ey inclu|de six d|
|00004510| 69 66 66 65 72 65 6e 74 | 20 6b 69 6e 64 73 20 6f |ifferent| kinds o|
|00004520| 66 20 62 75 74 74 6f 6e | 73 20 61 6e 64 20 63 68 |f button|s and ch|
|00004530| 65 63 6b 62 6f 78 65 73 | 2c 20 70 72 6f 74 6f 53 |eckboxes|, protoS|
|00004540| 6c 69 64 65 72 73 20 28 | 6c 69 6b 65 20 61 20 6c |liders (|like a l|
|00004550| 69 6e 65 61 72 20 73 6c | 69 64 65 72 20 6c 69 67 |inear sl|ider lig|
|00004560| 68 74 20 73 77 69 74 63 | 68 29 2c 20 70 72 6f 74 |ht switc|h), prot|
|00004570| 6f 52 6f 6c 6c 73 20 28 | 77 68 69 63 68 20 61 6c |oRolls (|which al|
|00004580| 6c 6f 77 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |low info|rmation |
|00004590| 74 6f 20 73 63 72 6f 6c | 6c 20 76 65 72 74 69 63 |to scrol|l vertic|
|000045a0| 61 6c 6c 79 20 6f 66 66 | 20 74 68 65 20 73 63 72 |ally off| the scr|
|000045b0| 65 65 6e 29 2c 20 61 6e | 64 20 64 69 66 66 65 72 |een), an|d differ|
|000045c0| 65 6e 74 20 6b 69 6e 64 | 73 20 6f 66 20 6c 61 62 |ent kind|s of lab|
|000045d0| 65 6c 73 2c 20 62 6f 72 | 64 65 72 73 2c 20 61 6e |els, bor|ders, an|
|000045e0| 64 20 73 74 61 6e 64 61 | 72 64 20 69 6e 74 65 72 |d standa|rd inter|
|000045f0| 66 61 63 65 20 65 6c 65 | 6d 65 6e 74 73 2e 20 45 |face ele|ments. E|
|00004600| 61 63 68 20 74 6f 6f 6c | 20 6f 6e 20 74 68 65 20 |ach tool| on the |
|00004610| 4e 65 77 74 6f 6e 20 54 | 6f 6f 6c 6b 69 74 20 6c |Newton T|oolkit l|
|00004620| 61 79 6f 75 74 20 70 61 | 6c 65 74 74 65 20 61 6c |ayout pa|lette al|
|00004630| 6c 6f 77 73 20 79 6f 75 | 20 74 6f 20 6c 61 79 20 |lows you| to lay |
|00004640| 6f 75 74 20 61 20 76 69 | 65 77 20 6f 72 20 61 20 |out a vi|ew or a |
|00004650| 70 72 6f 74 6f 2e 20 0d | 56 69 65 77 73 20 63 61 |proto. .|Views ca|
|00004660| 6e 20 63 6f 6e 74 61 69 | 6e 20 76 69 65 77 73 20 |n contai|n views |
|00004670| 69 6e 73 69 64 65 20 74 | 68 65 6d 2c 20 61 6e 64 |inside t|hem, and|
|00004680| 20 69 6e 20 66 61 63 74 | 2c 20 61 20 70 72 6f 74 | in fact|, a prot|
|00004690| 6f 20 69 73 20 61 20 70 | 72 65 64 65 66 69 6e 65 |o is a p|redefine|
|000046a0| 64 20 68 69 65 72 61 72 | 63 68 69 63 61 6c 20 67 |d hierar|chical g|
|000046b0| 72 6f 75 70 69 6e 67 20 | 6f 66 20 76 69 65 77 73 |rouping |of views|
|000046c0| 20 74 68 61 74 20 62 65 | 68 61 76 65 73 20 69 6e | that be|haves in|
|000046d0| 20 61 20 63 65 72 74 61 | 69 6e 20 77 61 79 2e 20 | a certa|in way. |
|000046e0| 59 6f 75 20 63 61 6e 20 | 63 72 65 61 74 65 20 79 |You can |create y|
|000046f0| 6f 75 72 20 6f 77 6e 20 | 63 75 73 74 6f 6d 20 70 |our own |custom p|
|00004700| 72 6f 74 6f 73 20 62 79 | 20 64 72 61 77 69 6e 67 |rotos by| drawing|
|00004710| 20 74 68 65 6d 20 69 6e | 20 6c 61 79 6f 75 74 20 | them in| layout |
|00004720| 77 69 6e 64 6f 77 73 2e | 20 0d 49 6e 20 4e 65 77 |windows.| .In New|
|00004730| 74 6f 6e 53 63 72 69 70 | 74 2c 20 79 6f 75 20 63 |tonScrip|t, you c|
|00004740| 61 6e 20 64 65 73 63 72 | 69 62 65 20 61 20 76 69 |an descr|ibe a vi|
|00004750| 65 77 20 61 73 20 61 20 | 66 72 61 6d 65 20 63 61 |ew as a |frame ca|
|00004760| 6c 6c 65 64 20 61 20 74 | 65 6d 70 6c 61 74 65 3b |lled a t|emplate;|
|00004770| 20 74 68 65 20 4e 65 77 | 74 6f 6e 20 6c 61 74 65 | the New|ton late|
|00004780| 72 20 63 72 65 61 74 65 | 73 20 61 20 76 69 65 77 |r create|s a view|
|00004790| 20 66 72 6f 6d 20 74 68 | 65 20 74 65 6d 70 6c 61 | from th|e templa|
|000047a0| 74 65 20 61 74 20 72 75 | 6e 20 74 69 6d 65 2e 20 |te at ru|n time. |
|000047b0| 54 68 65 20 73 6c 6f 74 | 73 20 69 6e 20 61 20 74 |The slot|s in a t|
|000047c0| 65 6d 70 6c 61 74 65 20 | 72 65 70 72 65 73 65 6e |emplate |represen|
|000047d0| 74 20 74 68 65 20 76 69 | 65 77 d5 73 20 64 61 74 |t the vi|ew.s dat|
|000047e0| 61 20 61 6e 64 20 74 68 | 65 20 66 75 6e 63 74 69 |a and th|e functi|
|000047f0| 6f 6e 73 20 74 68 61 74 | 20 69 6d 70 6c 65 6d 65 |ons that| impleme|
|00004800| 6e 74 20 74 68 65 20 62 | 65 68 61 76 69 6f 72 20 |nt the b|ehavior |
|00004810| 79 6f 75 20 68 61 76 65 | 20 74 6f 20 61 64 64 2e |you have| to add.|
|00004820| 20 28 4d 6f 73 74 20 76 | 69 65 77 73 20 61 6e 64 | (Most v|iews and|
|00004830| 20 70 72 6f 74 6f 73 20 | 68 61 76 65 20 62 65 68 | protos |have beh|
|00004840| 61 76 69 6f 72 20 62 75 | 69 6c 74 20 69 6e 2c 20 |avior bu|ilt in, |
|00004850| 61 6e 64 20 74 68 65 20 | 62 75 69 6c 74 2d 69 6e |and the |built-in|
|00004860| 20 62 65 68 61 76 69 6f | 72 20 6f 66 20 61 20 70 | behavio|r of a p|
|00004870| 72 6f 74 6f 20 69 73 20 | 6f 66 74 65 6e 20 71 75 |roto is |often qu|
|00004880| 69 74 65 20 65 78 74 65 | 6e 73 69 76 65 2e 29 20 |ite exte|nsive.) |
|00004890| 57 68 65 6e 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |When you|r applic|
|000048a0| 61 74 69 6f 6e 20 65 78 | 65 63 75 74 65 73 2c 20 |ation ex|ecutes, |
|000048b0| 61 20 74 65 6d 70 6c 61 | 74 65 20 28 77 68 69 63 |a templa|te (whic|
|000048c0| 68 20 63 61 6e 6e 6f 74 | 20 62 65 20 63 68 61 6e |h cannot| be chan|
|000048d0| 67 65 64 29 20 69 73 20 | 75 73 65 64 20 74 6f 20 |ged) is |used to |
|000048e0| 63 72 65 61 74 65 20 74 | 68 65 20 64 61 74 61 20 |create t|he data |
|000048f0| 73 74 72 75 63 74 75 72 | 65 20 69 6e 20 52 41 4d |structur|e in RAM|
|00004900| 20 74 68 61 74 20 63 6f | 72 72 65 73 70 6f 6e 64 | that co|rrespond|
|00004910| 73 20 74 6f 20 74 68 65 | 20 76 69 73 75 61 6c 20 |s to the| visual |
|00004920| 72 65 70 72 65 73 65 6e | 74 61 74 69 6f 6e 20 6f |represen|tation o|
|00004930| 66 20 74 68 65 20 76 69 | 65 77 20 d1 20 74 68 61 |f the vi|ew . tha|
|00004940| 74 20 69 73 2c 20 77 68 | 61 74 20 79 6f 75 20 73 |t is, wh|at you s|
|00004950| 65 65 20 6f 6e 20 74 68 | 65 20 4e 65 77 74 6f 6e |ee on th|e Newton|
|00004960| d5 73 20 73 63 72 65 65 | 6e 2e 20 0d 54 6f 20 73 |.s scree|n. .To s|
|00004970| 65 6e 64 20 61 20 6d 65 | 73 73 61 67 65 20 74 6f |end a me|ssage to|
|00004980| 20 61 20 76 69 65 77 20 | 28 74 68 61 74 20 69 73 | a view |(that is|
|00004990| 2c 20 74 6f 20 69 6e 76 | 6f 6b 65 20 6f 6e 65 20 |, to inv|oke one |
|000049a0| 6f 66 20 69 74 73 20 6d | 65 74 68 6f 64 73 29 2c |of its m|ethods),|
|000049b0| 20 74 68 65 20 73 79 6e | 74 61 78 20 69 73 0d 76 | the syn|tax is.v|
|000049c0| 69 65 77 3a 6d 65 73 73 | 61 67 65 6e 61 6d 65 28 |iew:mess|agename(|
|000049d0| 61 72 67 31 2c 20 61 72 | 67 32 2c 20 2e 2e 2e 2c |arg1, ar|g2, ...,|
|000049e0| 20 61 72 67 4e 29 0d 28 | 54 68 65 20 66 75 6e 63 | argN).(|The func|
|000049f0| 74 69 6f 6e 20 69 6e 76 | 6f 6c 76 65 64 20 69 73 |tion inv|olved is|
|00004a00| 20 74 68 65 20 6d 65 74 | 68 6f 64 2c 20 77 68 69 | the met|hod, whi|
|00004a10| 6c 65 20 74 68 65 20 6e | 61 6d 65 20 75 73 65 64 |le the n|ame used|
|00004a20| 20 74 6f 20 69 6e 76 6f | 6b 65 20 69 74 20 69 73 | to invo|ke it is|
|00004a30| 20 74 68 65 20 6d 65 73 | 73 61 67 65 2e 20 59 6f | the mes|sage. Yo|
|00004a40| 75 20 73 65 6e 64 20 61 | 20 6d 65 73 73 61 67 65 |u send a| message|
|00004a50| 20 20 0d 09 74 6f 20 61 | 6e 20 6f 62 6a 65 63 74 | ..to a|n object|
|00004a60| 2c 20 61 6e 64 20 74 68 | 61 74 20 63 61 75 73 65 |, and th|at cause|
|00004a70| 73 20 74 68 65 20 61 73 | 73 6f 63 69 61 74 65 64 |s the as|sociated|
|00004a80| 20 6d 65 74 68 6f 64 20 | 74 6f 20 65 78 65 63 75 | method |to execu|
|00004a90| 74 65 2e 29 20 0d 53 59 | 53 54 45 4d 20 4d 45 53 |te.) .SY|STEM MES|
|00004aa0| 53 41 47 45 53 20 0d 41 | 73 20 77 69 74 68 20 74 |SAGES .A|s with t|
|00004ab0| 68 65 20 4d 61 63 69 6e | 74 6f 73 68 2c 20 4e 65 |he Macin|tosh, Ne|
|00004ac0| 77 74 6f 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |wton app|lication|
|00004ad0| 73 20 61 72 65 20 64 72 | 69 76 65 6e 20 62 79 20 |s are dr|iven by |
|00004ae0| 75 73 65 72 20 65 76 65 | 6e 74 73 20 d1 20 74 68 |user eve|nts . th|
|00004af0| 65 20 75 73 65 72 20 74 | 61 70 73 20 6f 72 20 64 |e user t|aps or d|
|00004b00| 72 61 77 73 20 6f 6e 20 | 74 68 65 20 4e 65 77 74 |raws on |the Newt|
|00004b10| 6f 6e 20 73 63 72 65 65 | 6e 20 69 6e 20 64 69 66 |on scree|n in dif|
|00004b20| 66 65 72 65 6e 74 20 70 | 6c 61 63 65 73 20 d1 20 |ferent p|laces . |
|00004b30| 61 73 20 77 65 6c 6c 20 | 61 73 20 62 79 20 73 79 |as well |as by sy|
|00004b40| 73 74 65 6d 20 65 76 65 | 6e 74 73 2e 20 54 68 65 |stem eve|nts. The|
|00004b50| 20 4e 65 77 74 6f 6e 20 | 73 65 6e 64 73 20 79 6f | Newton |sends yo|
|00004b60| 75 72 20 70 72 6f 67 72 | 61 6d 20 73 79 73 74 65 |ur progr|am syste|
|00004b70| 6d 20 6d 65 73 73 61 67 | 65 73 2c 20 77 68 69 63 |m messag|es, whic|
|00004b80| 68 20 74 72 69 67 67 65 | 72 20 74 68 65 69 72 20 |h trigge|r their |
|00004b90| 63 6f 72 72 65 73 70 6f | 6e 64 69 6e 67 20 6d 65 |correspo|nding me|
|00004ba0| 74 68 6f 64 73 2e 20 49 | 6e 20 73 6f 6d 65 20 63 |thods. I|n some c|
|00004bb0| 61 73 65 73 2c 20 79 6f | 75 20 6c 65 74 20 74 68 |ases, yo|u let th|
|00004bc0| 65 20 62 75 69 6c 74 2d | 69 6e 20 4e 65 77 74 6f |e built-|in Newto|
|00004bd0| 6e 20 6d 65 74 68 6f 64 | 73 20 64 6f 20 74 68 65 |n method|s do the|
|00004be0| 69 72 20 77 6f 72 6b 3b | 20 69 6e 20 6d 61 6e 79 |ir work;| in many|
|00004bf0| 20 6f 74 68 65 72 73 2c | 20 79 6f 75 20 77 72 69 | others,| you wri|
|00004c00| 74 65 20 79 6f 75 72 20 | 6f 77 6e 2e 20 54 68 65 |te your |own. The|
|00004c10| 72 65 20 61 72 65 20 32 | 35 20 6f 72 20 73 6f 20 |re are 2|5 or so |
|00004c20| 73 79 73 74 65 6d 20 6d | 65 73 73 61 67 65 73 20 |system m|essages |
|00004c30| 79 6f 75 20 6e 65 65 64 | 20 74 6f 20 6b 6e 6f 77 |you need| to know|
|00004c40| 20 61 62 6f 75 74 2e 20 | 48 65 72 65 20 61 72 65 | about. |Here are|
|00004c50| 20 61 20 66 65 77 20 6f | 66 20 74 68 65 6d 2c 20 | a few o|f them, |
|00004c60| 61 6e 64 20 77 68 65 6e | 20 74 68 65 20 63 6f 72 |and when| the cor|
|00004c70| 72 65 73 70 6f 6e 64 69 | 6e 67 20 6d 65 74 68 6f |respondi|ng metho|
|00004c80| 64 73 20 65 78 65 63 75 | 74 65 3a 0d a5 09 76 69 |ds execu|te:...vi|
|00004c90| 65 77 43 68 61 6e 67 65 | 64 53 63 72 69 70 74 3a |ewChange|dScript:|
|00004ca0| 20 65 78 65 63 75 74 65 | 73 20 77 68 65 6e 20 61 | execute|s when a|
|00004cb0| 20 76 69 65 77 20 73 6c | 6f 74 20 69 73 20 63 68 | view sl|ot is ch|
|00004cc0| 61 6e 67 65 64 20 75 73 | 69 6e 67 20 74 68 65 20 |anged us|ing the |
|00004cd0| 53 65 74 56 61 6c 75 65 | 20 66 75 6e 63 74 69 6f |SetValue| functio|
|00004ce0| 6e 20 6f 72 20 77 68 65 | 6e 20 63 65 72 74 61 69 |n or whe|n certai|
|00004cf0| 6e 20 66 75 6e 63 74 69 | 6f 6e 73 20 63 68 61 6e |n functi|ons chan|
|00004d00| 67 65 20 61 20 76 69 65 | 77 20 64 69 72 65 63 74 |ge a vie|w direct|
|00004d10| 6c 79 20 0d a5 09 76 69 | 65 77 44 72 61 77 53 63 |ly ...vi|ewDrawSc|
|00004d20| 72 69 70 74 3a 20 65 78 | 65 63 75 74 65 73 20 77 |ript: ex|ecutes w|
|00004d30| 68 65 6e 20 61 20 76 69 | 65 77 20 6e 65 65 64 73 |hen a vi|ew needs|
|00004d40| 20 74 6f 20 62 65 20 64 | 72 61 77 6e 20 0d a5 09 | to be d|rawn ...|
|00004d50| 76 69 65 77 53 74 72 6f | 6b 65 53 63 72 69 70 74 |viewStro|keScript|
|00004d60| 3a 20 65 78 65 63 75 74 | 65 73 20 77 68 65 6e 20 |: execut|es when |
|00004d70| 61 20 75 73 65 72 20 77 | 72 69 74 65 73 20 69 6e |a user w|rites in|
|00004d80| 73 69 64 65 20 61 20 76 | 69 65 77 20 0d a5 09 76 |side a v|iew ...v|
|00004d90| 69 65 77 53 65 74 75 70 | 46 6f 72 6d 53 63 72 69 |iewSetup|FormScri|
|00004da0| 70 74 2c 20 76 69 65 77 | 53 65 74 75 70 43 68 69 |pt, view|SetupChi|
|00004db0| 6c 64 72 65 6e 53 63 72 | 69 70 74 2c 20 76 69 65 |ldrenScr|ipt, vie|
|00004dc0| 77 53 65 74 75 70 44 6f | 6e 65 53 63 72 69 70 74 |wSetupDo|neScript|
|00004dd0| 3a 20 65 78 65 63 75 74 | 65 20 61 74 20 73 70 65 |: execut|e at spe|
|00004de0| 63 69 66 69 63 20 70 6f | 69 6e 74 73 20 0d 64 75 |cific po|ints .du|
|00004df0| 72 69 6e 67 20 74 68 65 | 20 73 65 74 75 70 20 6f |ring the| setup o|
|00004e00| 66 20 61 20 76 69 65 77 | 2c 20 62 65 66 6f 72 65 |f a view|, before|
|00004e10| 20 74 68 65 20 76 69 65 | 77 20 69 73 20 64 69 73 | the vie|w is dis|
|00004e20| 70 6c 61 79 65 64 20 0d | a5 09 76 69 65 77 49 64 |played .|..viewId|
|00004e30| 6c 65 53 63 72 69 70 74 | 3a 20 65 78 65 63 75 74 |leScript|: execut|
|00004e40| 65 73 20 70 65 72 69 6f | 64 69 63 61 6c 6c 79 20 |es perio|dically |
|00004e50| 0d a5 09 76 69 65 77 51 | 75 69 74 53 63 72 69 70 |...viewQ|uitScrip|
|00004e60| 74 3a 20 65 78 65 63 75 | 74 65 73 20 6a 75 73 74 |t: execu|tes just|
|00004e70| 20 62 65 66 6f 72 65 20 | 61 20 76 69 65 77 20 69 | before |a view i|
|00004e80| 73 20 0d 64 69 73 70 6f | 73 65 64 20 6f 66 20 0d |s .dispo|sed of .|
|00004e90| 53 6f 6d 65 20 73 79 73 | 74 65 6d 20 6d 65 73 73 |Some sys|tem mess|
|00004ea0| 61 67 65 73 20 70 65 72 | 74 61 69 6e 20 74 6f 20 |ages per|tain to |
|00004eb0| 70 61 72 74 69 63 75 6c | 61 72 20 76 69 65 77 73 |particul|ar views|
|00004ec0| 20 d1 20 66 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 | . for e|xample, |
|00004ed0| 62 75 74 74 6f 6e 43 6c | 69 63 6b 53 63 72 69 70 |buttonCl|ickScrip|
|00004ee0| 74 20 28 66 6f 72 20 62 | 75 74 74 6f 6e 73 29 2c |t (for b|uttons),|
|00004ef0| 20 6b 65 79 50 72 65 73 | 73 53 63 72 69 70 74 20 | keyPres|sScript |
|00004f00| 28 66 6f 72 20 6b 65 79 | 62 6f 61 72 64 20 76 69 |(for key|board vi|
|00004f10| 65 77 73 29 2c 20 61 6e | 64 20 6d 6f 6e 74 68 43 |ews), an|d monthC|
|00004f20| 68 61 6e 67 65 64 53 63 | 72 69 70 74 20 28 66 6f |hangedSc|ript (fo|
|00004f30| 72 20 74 68 65 20 6d 6f | 6e 74 68 6c 79 20 63 61 |r the mo|nthly ca|
|00004f40| 6c 65 6e 64 61 72 20 76 | 69 65 77 29 2e 0d 41 4e |lendar v|iew)..AN|
|00004f50| 44 20 54 48 41 54 d5 53 | 20 4a 55 53 54 20 54 48 |D THAT.S| JUST TH|
|00004f60| 45 20 42 45 47 49 4e 4e | 49 4e 47 2e 20 2e 20 2e |E BEGINN|ING. . .|
|00004f70| 0d 54 68 65 72 65 d5 73 | 20 61 20 6c 6f 74 20 6d |.There.s| a lot m|
|00004f80| 6f 72 65 20 74 6f 20 70 | 72 6f 67 72 61 6d 6d 69 |ore to p|rogrammi|
|00004f90| 6e 67 20 74 68 65 20 4e | 65 77 74 6f 6e 2e 20 59 |ng the N|ewton. Y|
|00004fa0| 6f 75 20 63 61 6e 20 66 | 69 6e 64 20 6f 75 74 20 |ou can f|ind out |
|00004fb0| 6d 6f 72 65 20 62 79 20 | 72 65 61 64 69 6e 67 20 |more by |reading |
|00004fc0| 74 68 65 20 6d 61 6e 75 | 61 6c 73 20 74 68 61 74 |the manu|als that|
|00004fd0| 20 63 6f 6d 65 20 77 69 | 74 68 20 74 68 65 20 4e | come wi|th the N|
|00004fe0| 65 77 74 6f 6e 20 54 6f | 6f 6c 6b 69 74 2e 20 42 |ewton To|olkit. B|
|00004ff0| 65 20 73 75 72 65 20 74 | 6f 20 72 65 61 64 20 61 |e sure t|o read a|
|00005000| 6e 79 20 65 72 72 61 74 | 61 20 73 68 65 65 74 73 |ny errat|a sheets|
|00005010| 2c 20 72 65 6c 65 61 73 | 65 20 6e 6f 74 65 73 2c |, releas|e notes,|
|00005020| 20 61 6e 64 20 d2 72 65 | 61 64 20 6d 65 d3 20 66 | and .re|ad me. f|
|00005030| 69 6c 65 73 3b 20 49 20 | 6f 76 65 72 6c 6f 6f 6b |iles; I |overlook|
|00005040| 65 64 20 6f 6e 65 20 61 | 6e 64 20 6d 69 73 73 65 |ed one a|nd misse|
|00005050| 64 20 61 20 70 69 65 63 | 65 20 6f 66 20 69 6e 66 |d a piec|e of inf|
|00005060| 6f 72 6d 61 74 69 6f 6e | 20 74 68 61 74 20 77 6f |ormation| that wo|
|00005070| 75 6c 64 20 68 61 76 65 | 20 73 61 76 65 64 20 6d |uld have| saved m|
|00005080| 65 20 73 65 76 65 72 61 | 6c 20 64 61 79 73 d5 20 |e severa|l days. |
|00005090| 77 6f 72 6b 21 20 0d 09 | 0d 0d 47 41 4d 45 53 20 |work! ..|..GAMES |
|000050a0| 57 45 d5 52 45 20 47 4f | 49 4e 47 20 54 4f 20 50 |WE.RE GO|ING TO P|
|000050b0| 4c 41 59 0d 54 61 70 42 | 6f 61 72 64 20 70 6c 61 |LAY.TapB|oard pla|
|000050c0| 79 73 20 74 68 72 65 65 | 20 67 61 6d 65 73 3a 20 |ys three| games: |
|000050d0| 54 69 63 2d 74 61 63 2d | 74 6f 65 2c 20 47 6f 6d |Tic-tac-|toe, Gom|
|000050e0| 6f 6b 75 2c 20 61 6e 64 | 20 52 65 76 65 72 73 69 |oku, and| Reversi|
|000050f0| 2e 20 54 68 65 20 75 73 | 65 72 20 63 68 6f 6f 73 |. The us|er choos|
|00005100| 65 73 20 6f 6e 65 20 6f | 66 20 74 68 65 20 67 61 |es one o|f the ga|
|00005110| 6d 65 73 20 66 72 6f 6d | 20 61 20 73 65 74 20 6f |mes from| a set o|
|00005120| 66 20 72 61 64 69 6f 20 | 62 75 74 74 6f 6e 73 2c |f radio |buttons,|
|00005130| 20 61 20 67 61 6d 65 20 | 62 6f 61 72 64 20 69 73 | a game |board is|
|00005140| 20 64 69 73 70 6c 61 79 | 65 64 2c 20 61 6e 64 20 | display|ed, and |
|00005150| 74 68 65 20 0d 75 73 65 | 72 20 6d 6f 76 65 73 20 |the .use|r moves |
|00005160| 62 79 20 74 61 70 70 69 | 6e 67 20 61 20 73 71 75 |by tappi|ng a squ|
|00005170| 61 72 65 20 6f 6e 20 74 | 68 65 20 62 6f 61 72 64 |are on t|he board|
|00005180| 2e 20 54 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |. The ap|plicatio|
|00005190| 6e 20 72 65 73 70 6f 6e | 64 73 20 77 69 74 68 20 |n respon|ds with |
|000051a0| 61 20 63 6f 75 6e 74 65 | 72 6d 6f 76 65 2e 20 54 |a counte|rmove. T|
|000051b0| 68 69 73 20 70 72 6f 63 | 65 73 73 20 72 65 70 65 |his proc|ess repe|
|000051c0| 61 74 73 20 75 6e 74 69 | 6c 20 6f 6e 65 20 70 6c |ats unti|l one pl|
|000051d0| 61 79 65 72 20 77 69 6e | 73 20 6f 72 20 74 68 65 |ayer win|s or the|
|000051e0| 20 67 61 6d 65 20 65 6e | 64 73 20 69 6e 20 61 20 | game en|ds in a |
|000051f0| 74 69 65 2e 20 57 68 65 | 6e 20 74 68 65 20 75 73 |tie. Whe|n the us|
|00005200| 65 72 20 63 6c 6f 73 65 | 73 20 54 61 70 42 6f 61 |er close|s TapBoa|
|00005210| 72 64 2c 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 |rd, the |applicat|
|00005220| 69 6f 6e 20 72 65 6d 65 | 6d 62 65 72 73 20 74 68 |ion reme|mbers th|
|00005230| 65 20 73 74 61 74 65 20 | 6f 66 20 74 68 65 20 62 |e state |of the b|
|00005240| 6f 61 72 64 20 d1 20 77 | 68 69 63 68 20 67 61 6d |oard . w|hich gam|
|00005250| 65 20 69 73 20 62 65 69 | 6e 67 20 70 6c 61 79 65 |e is bei|ng playe|
|00005260| 64 2c 20 77 68 65 72 65 | 20 74 68 65 20 70 69 65 |d, where| the pie|
|00005270| 63 65 73 20 61 72 65 20 | 70 6c 61 63 65 64 2c 20 |ces are |placed, |
|00005280| 77 68 6f 73 65 20 74 75 | 72 6e 20 69 74 20 69 73 |whose tu|rn it is|
|00005290| 2c 20 61 6e 64 20 74 68 | 65 20 67 61 6d 65 d5 73 |, and th|e game.s|
|000052a0| 20 6f 75 74 63 6f 6d 65 | 2e 20 57 68 65 6e 20 54 | outcome|. When T|
|000052b0| 61 70 42 6f 61 72 64 20 | 69 73 20 72 65 6f 70 65 |apBoard |is reope|
|000052c0| 6e 65 64 2c 20 69 74 20 | 72 65 73 74 6f 72 65 73 |ned, it |restores|
|000052d0| 20 74 68 65 20 73 74 61 | 74 65 20 73 6f 20 74 68 | the sta|te so th|
|000052e0| 61 74 20 74 68 65 20 75 | 73 65 72 20 63 61 6e 20 |at the u|ser can |
|000052f0| 63 6f 6e 74 69 6e 75 65 | 20 74 68 65 20 67 61 6d |continue| the gam|
|00005300| 65 20 77 68 65 72 65 20 | 69 74 20 6c 65 66 74 20 |e where |it left |
|00005310| 6f 66 66 2e 20 0d 53 6f | 2c 20 63 6f 6d 6d 6f 6e |off. .So|, common|
|00005320| 20 65 6c 65 6d 65 6e 74 | 73 20 73 68 61 72 65 64 | element|s shared|
|00005330| 20 62 79 20 74 68 65 20 | 67 61 6d 65 73 20 69 6e | by the |games in|
|00005340| 63 6c 75 64 65 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |clude th|e follow|
|00005350| 69 6e 67 3a 0d a5 09 64 | 69 73 70 6c 61 79 69 6e |ing:...d|isplayin|
|00005360| 67 20 74 68 65 20 62 6f | 61 72 64 20 74 6f 20 74 |g the bo|ard to t|
|00005370| 68 65 20 75 73 65 72 0d | a5 09 61 64 64 69 6e 67 |he user.|..adding|
|00005380| 20 61 20 6e 65 77 20 6d | 6f 76 65 20 74 6f 20 74 | a new m|ove to t|
|00005390| 68 65 20 62 6f 61 72 64 | 20 64 69 73 70 6c 61 79 |he board| display|
|000053a0| 0d a5 09 61 63 6b 6e 6f | 77 6c 65 64 67 69 6e 67 |...ackno|wledging|
|000053b0| 20 74 68 65 20 75 73 65 | 72 d5 73 20 74 61 70 20 | the use|r.s tap |
|000053c0| 77 69 74 68 20 61 6e 20 | 61 70 70 72 6f 70 72 69 |with an |appropri|
|000053d0| 61 74 65 20 73 6f 75 6e | 64 0d a5 09 74 72 61 63 |ate soun|d...trac|
|000053e0| 6b 69 6e 67 20 74 68 65 | 20 73 74 72 6f 6b 65 20 |king the| stroke |
|000053f0| 74 6f 20 64 65 63 69 64 | 65 20 77 68 65 74 68 65 |to decid|e whethe|
|00005400| 72 20 69 74 20 65 6e 64 | 65 64 20 6f 6e 20 74 68 |r it end|ed on th|
|00005410| 65 20 73 61 6d 65 20 73 | 71 75 61 72 65 20 61 73 |e same s|quare as|
|00005420| 20 69 74 20 73 74 61 72 | 74 65 64 20 6f 6e 0d a5 | it star|ted on..|
|00005430| 09 66 69 67 75 72 69 6e | 67 20 6f 75 74 20 77 68 |.figurin|g out wh|
|00005440| 69 63 68 20 73 71 75 61 | 72 65 20 69 74 20 77 61 |ich squa|re it wa|
|00005450| 73 2c 20 61 6e 64 20 77 | 68 65 74 68 65 72 20 74 |s, and w|hether t|
|00005460| 68 65 20 6d 6f 76 65 20 | 69 73 20 76 61 6c 69 64 |he move |is valid|
|00005470| 0d a5 09 72 65 63 6f 72 | 64 69 6e 67 20 74 68 65 |...recor|ding the|
|00005480| 20 6d 6f 76 65 0d a5 09 | 63 68 65 63 6b 69 6e 67 | move...|checking|
|00005490| 20 69 74 20 74 6f 20 73 | 65 65 20 69 66 20 69 74 | it to s|ee if it|
|000054a0| d5 73 20 61 20 77 69 6e | 6e 69 6e 67 20 6f 72 20 |.s a win|ning or |
|000054b0| 74 79 69 6e 67 20 6d 6f | 76 65 0d a5 09 75 6e 63 |tying mo|ve...unc|
|000054c0| 6f 76 65 72 69 6e 67 20 | 61 20 67 6f 6f 64 20 6d |overing |a good m|
|000054d0| 6f 76 65 20 77 68 65 6e | 20 69 74 d5 73 20 54 61 |ove when| it.s Ta|
|000054e0| 70 42 6f 61 72 64 d5 73 | 20 74 75 72 6e 0d a5 09 |pBoard.s| turn...|
|000054f0| 73 61 76 69 6e 67 20 74 | 68 65 20 73 74 61 74 65 |saving t|he state|
|00005500| 20 6f 66 20 74 68 65 20 | 62 6f 61 72 64 20 77 68 | of the |board wh|
|00005510| 65 6e 20 74 68 65 20 75 | 73 65 72 20 63 6c 6f 73 |en the u|ser clos|
|00005520| 65 73 20 74 68 65 20 67 | 61 6d 65 0d a5 09 72 65 |es the g|ame...re|
|00005530| 73 74 6f 72 69 6e 67 20 | 74 68 65 20 73 74 61 74 |storing |the stat|
|00005540| 65 20 77 68 65 6e 20 74 | 68 65 20 67 61 6d 65 20 |e when t|he game |
|00005550| 69 73 20 72 65 6f 70 65 | 6e 65 64 0d 41 6c 6c 20 |is reope|ned.All |
|00005560| 74 68 65 73 65 20 63 6f | 6d 6d 6f 6e 20 61 63 74 |these co|mmon act|
|00005570| 69 6f 6e 73 20 63 61 6e | 20 62 65 20 61 62 73 74 |ions can| be abst|
|00005580| 72 61 63 74 65 64 20 69 | 6e 74 6f 20 61 20 70 72 |racted i|nto a pr|
|00005590| 6f 74 6f 74 79 70 65 20 | 74 68 61 74 20 65 61 63 |ototype |that eac|
|000055a0| 68 20 73 70 65 63 69 66 | 69 63 20 67 61 6d 65 20 |h specif|ic game |
|000055b0| 63 61 6e 20 74 68 65 6e | 20 69 6e 68 65 72 69 74 |can then| inherit|
|000055c0| 20 66 72 6f 6d 20 28 61 | 73 20 64 65 73 63 72 69 | from (a|s descri|
|000055d0| 62 65 64 20 6c 61 74 65 | 72 20 69 6e 20 74 68 65 |bed late|r in the|
|000055e0| 20 73 65 63 74 69 6f 6e | 20 d2 54 68 65 20 70 72 | section| .The pr|
|000055f0| 6f 74 6f 42 6f 61 72 64 | 20 50 72 6f 74 6f 20 54 |otoBoard| Proto T|
|00005600| 65 6d 70 6c 61 74 65 d3 | 29 2e 20 42 75 74 20 73 |emplate.|). But s|
|00005610| 69 6e 63 65 20 74 68 65 | 20 67 61 6d 65 73 20 61 |ince the| games a|
|00005620| 72 65 20 64 69 66 66 65 | 72 65 6e 74 2c 20 65 61 |re diffe|rent, ea|
|00005630| 63 68 20 61 6c 73 6f 20 | 68 61 73 20 69 74 73 20 |ch also |has its |
|00005640| 6f 77 6e 20 72 75 6c 65 | 73 20 61 6e 64 20 70 6f |own rule|s and po|
|00005650| 73 73 69 62 6c 79 20 69 | 74 73 20 6f 77 6e 20 62 |ssibly i|ts own b|
|00005660| 6f 61 72 64 2c 20 61 6e | 64 20 65 61 63 68 20 72 |oard, an|d each r|
|00005670| 65 71 75 69 72 65 73 20 | 69 74 73 20 6f 77 6e 20 |equires |its own |
|00005680| 61 6c 67 6f 72 69 74 68 | 6d 20 66 6f 72 20 66 69 |algorith|m for fi|
|00005690| 6e 64 69 6e 67 20 67 6f | 6f 64 20 6d 6f 76 65 73 |nding go|od moves|
|000056a0| 20 66 6f 72 20 74 68 65 | 20 63 6f 6d 70 75 74 65 | for the| compute|
|000056b0| 72 3b 20 64 65 74 61 69 | 6c 73 20 66 6f 6c 6c 6f |r; detai|ls follo|
|000056c0| 77 2e 0d 54 49 43 2d 54 | 41 43 2d 54 4f 45 0d 59 |w..TIC-T|AC-TOE.Y|
|000056d0| 6f 75 20 75 6e 64 6f 75 | 62 74 65 64 6c 79 20 6b |ou undou|btedly k|
|000056e0| 6e 6f 77 20 74 68 69 73 | 20 67 61 6d 65 2c 20 62 |now this| game, b|
|000056f0| 75 74 20 77 65 d5 6c 6c | 20 64 65 73 63 72 69 62 |ut we.ll| describ|
|00005700| 65 20 69 74 20 62 72 69 | 65 66 6c 79 3a 20 54 69 |e it bri|efly: Ti|
|00005710| 63 2d 74 61 63 2d 74 6f | 65 20 69 73 20 70 6c 61 |c-tac-to|e is pla|
|00005720| 79 65 64 20 6f 6e 20 61 | 20 33 20 78 20 33 20 62 |yed on a| 3 x 3 b|
|00005730| 6f 61 72 64 20 77 69 74 | 68 20 70 6c 61 79 65 72 |oard wit|h player|
|00005740| 73 20 74 61 6b 69 6e 67 | 20 74 75 72 6e 73 20 6d |s taking| turns m|
|00005750| 61 6b 69 6e 67 20 58 d5 | 73 20 61 6e 64 20 4f d5 |aking X.|s and O.|
|00005760| 73 2e 20 54 68 65 20 66 | 69 72 73 74 20 70 6c 61 |s. The f|irst pla|
|00005770| 79 65 72 20 74 6f 20 67 | 65 74 20 74 68 72 65 65 |yer to g|et three|
|00005780| 20 69 6e 20 61 20 72 6f | 77 20 68 6f 72 69 7a 6f | in a ro|w horizo|
|00005790| 6e 74 61 6c 6c 79 2c 20 | 76 65 72 74 69 63 61 6c |ntally, |vertical|
|000057a0| 6c 79 2c 20 6f 72 20 64 | 69 61 67 6f 6e 61 6c 6c |ly, or d|iagonall|
|000057b0| 79 20 77 69 6e 73 2e 20 | 49 66 20 6e 65 69 74 68 |y wins. |If neith|
|000057c0| 65 72 20 70 6c 61 79 65 | 72 20 67 65 74 73 20 74 |er playe|r gets t|
|000057d0| 68 72 65 65 20 69 6e 20 | 61 20 72 6f 77 2c 20 74 |hree in |a row, t|
|000057e0| 68 65 20 67 61 6d 65 20 | 69 73 20 74 69 65 64 2e |he game |is tied.|
|000057f0| 20 46 69 67 75 72 65 20 | 31 20 73 68 6f 77 73 20 | Figure |1 shows |
|00005800| 61 20 74 79 70 69 63 61 | 6c 20 67 61 6d 65 20 6f |a typica|l game o|
|00005810| 66 20 54 69 63 2d 74 61 | 63 2d 74 6f 65 2e 20 58 |f Tic-ta|c-toe. X|
|00005820| 20 67 65 74 73 20 74 68 | 72 65 65 20 6f 6e 20 74 | gets th|ree on t|
|00005830| 68 65 20 64 69 61 67 6f | 6e 61 6c 20 61 6e 64 20 |he diago|nal and |
|00005840| 77 69 6e 73 2e 0d 54 69 | 63 2d 74 61 63 2d 74 6f |wins..Ti|c-tac-to|
|00005850| 65 20 69 73 20 61 20 73 | 69 6d 70 6c 65 20 67 61 |e is a s|imple ga|
|00005860| 6d 65 20 74 6f 20 6d 61 | 73 74 65 72 2e 20 54 68 |me to ma|ster. Th|
|00005870| 65 72 65 20 61 72 65 20 | 61 20 66 65 77 20 65 61 |ere are |a few ea|
|00005880| 73 79 20 68 65 75 72 69 | 73 74 69 63 73 2c 20 73 |sy heuri|stics, s|
|00005890| 75 63 68 20 61 73 20 61 | 6c 77 61 79 73 20 74 61 |uch as a|lways ta|
|000058a0| 6b 65 20 74 68 65 20 63 | 65 6e 74 65 72 20 73 71 |ke the c|enter sq|
|000058b0| 75 61 72 65 20 69 66 20 | 79 6f 75 20 63 61 6e 2c |uare if |you can,|
|000058c0| 20 61 6e 64 20 77 69 74 | 68 20 61 20 6c 69 74 74 | and wit|h a litt|
|000058d0| 6c 65 20 74 68 6f 75 67 | 68 74 20 69 74 d5 73 20 |le thoug|ht it.s |
|000058e0| 6e 6f 74 20 68 61 72 64 | 20 74 6f 20 73 65 65 20 |not hard| to see |
|000058f0| 73 65 76 65 72 61 6c 20 | 6d 6f 76 65 73 20 61 68 |several |moves ah|
|00005900| 65 61 64 2e 0d 46 69 67 | 75 72 65 20 31 0d 54 69 |ead..Fig|ure 1.Ti|
|00005910| 63 2d 74 61 63 2d 74 6f | 65 0d 54 61 70 42 6f 61 |c-tac-to|e.TapBoa|
|00005920| 72 64 d5 73 20 61 6c 67 | 6f 72 69 74 68 6d 20 66 |rd.s alg|orithm f|
|00005930| 6f 72 20 64 65 74 65 72 | 6d 69 6e 69 6e 67 20 61 |or deter|mining a|
|00005940| 20 67 6f 6f 64 20 54 69 | 63 2d 74 61 63 2d 74 6f | good Ti|c-tac-to|
|00005950| 65 20 6d 6f 76 65 20 69 | 6e 76 6f 6c 76 65 73 20 |e move i|nvolves |
|00005960| 64 6f 69 6e 67 20 61 20 | 74 77 6f 2d 6d 6f 76 65 |doing a |two-move|
|00005970| 20 6c 6f 6f 6b 2d 61 68 | 65 61 64 2c 20 63 6f 6d | look-ah|ead, com|
|00005980| 62 69 6e 65 64 20 77 69 | 74 68 20 73 6f 6d 65 20 |bined wi|th some |
|00005990| 73 69 6d 70 6c 65 20 68 | 65 75 72 69 73 74 69 63 |simple h|euristic|
|000059a0| 73 2e 20 54 68 65 20 6c | 6f 6f 6b 2d 61 68 65 61 |s. The l|ook-ahea|
|000059b0| 64 20 74 72 69 65 73 20 | 61 6c 6c 20 70 6f 73 73 |d tries |all poss|
|000059c0| 69 62 6c 65 20 6d 6f 76 | 65 73 2c 20 74 68 65 6e |ible mov|es, then|
|000059d0| 20 74 72 69 65 73 20 61 | 6c 6c 20 70 6f 73 73 69 | tries a|ll possi|
|000059e0| 62 6c 65 20 61 6e 73 77 | 65 72 69 6e 67 20 6d 6f |ble answ|ering mo|
|000059f0| 76 65 73 2e 20 54 68 65 | 20 68 65 75 72 69 73 74 |ves. The| heurist|
|00005a00| 69 63 20 67 69 76 65 73 | 20 67 72 65 61 74 65 72 |ic gives| greater|
|00005a10| 20 77 65 69 67 68 74 20 | 74 6f 20 74 61 6b 69 6e | weight |to takin|
|00005a20| 67 20 74 68 65 20 63 65 | 6e 74 65 72 20 61 6e 64 |g the ce|nter and|
|00005a30| 20 63 6f 72 6e 65 72 20 | 73 71 75 61 72 65 73 2e | corner |squares.|
|00005a40| 20 54 68 69 73 20 61 6c | 67 6f 72 69 74 68 6d 20 | This al|gorithm |
|00005a50| 64 6f 65 73 6e d5 74 20 | 70 6c 61 79 20 61 20 70 |doesn.t |play a p|
|00005a60| 65 72 66 65 63 74 20 67 | 61 6d 65 20 6f 66 20 54 |erfect g|ame of T|
|00005a70| 69 63 2d 74 61 63 2d 74 | 6f 65 2c 20 62 75 74 20 |ic-tac-t|oe, but |
|00005a80| 74 68 69 73 20 69 73 20 | 61 63 74 75 61 6c 6c 79 |this is |actually|
|00005a90| 20 61 6e 20 61 64 76 61 | 6e 74 61 67 65 2c 20 66 | an adva|ntage, f|
|00005aa0| 6f 72 20 74 77 6f 20 72 | 65 61 73 6f 6e 73 3a 20 |or two r|easons: |
|00005ab0| 69 74 20 70 75 6c 6c 73 | 20 70 6c 61 79 65 72 73 |it pulls| players|
|00005ac0| 20 69 6e 74 6f 20 74 68 | 65 20 67 61 6d 65 20 62 | into th|e game b|
|00005ad0| 79 20 67 69 76 69 6e 67 | 20 74 68 65 20 69 6d 70 |y giving| the imp|
|00005ae0| 72 65 73 73 69 6f 6e 20 | 74 68 61 74 20 74 68 65 |ression |that the|
|00005af0| 20 63 6f 6d 70 75 74 65 | 72 20 69 73 20 61 6e 20 | compute|r is an |
|00005b00| 65 61 73 79 20 74 61 72 | 67 65 74 2c 20 61 6e 64 |easy tar|get, and|
|00005b10| 20 69 74 20 70 72 6f 76 | 69 64 65 73 20 61 20 67 | it prov|ides a g|
|00005b20| 61 6d 65 20 74 68 61 74 | d5 73 20 70 6c 61 79 61 |ame that|.s playa|
|00005b30| 62 6c 65 20 62 79 20 79 | 6f 75 6e 67 65 72 20 75 |ble by y|ounger u|
|00005b40| 73 65 72 73 20 28 6d 79 | 20 66 69 76 65 2d 79 65 |sers (my| five-ye|
|00005b50| 61 72 2d 6f 6c 64 20 64 | 61 75 67 68 74 65 72 20 |ar-old d|aughter |
|00005b60| 6c 6f 76 65 73 20 69 74 | 29 2e 20 0d 47 4f 4d 4f |loves it|). .GOMO|
|00005b70| 4b 55 0d 47 6f 6d 6f 6b | 75 20 69 73 20 70 6c 61 |KU.Gomok|u is pla|
|00005b80| 79 65 64 20 6f 6e 20 61 | 6e 20 38 20 78 20 38 20 |yed on a|n 8 x 8 |
|00005b90| 62 6f 61 72 64 2e 20 50 | 6c 61 79 65 72 73 20 74 |board. P|layers t|
|00005ba0| 61 6b 65 20 74 75 72 6e | 73 20 70 6c 61 63 69 6e |ake turn|s placin|
|00005bb0| 67 20 70 69 65 63 65 73 | 20 6f 6e 20 74 68 65 20 |g pieces| on the |
|00005bc0| 62 6f 61 72 64 2c 20 61 | 6e 64 20 74 68 65 20 66 |board, a|nd the f|
|00005bd0| 69 72 73 74 20 70 6c 61 | 79 65 72 20 74 6f 20 67 |irst pla|yer to g|
|00005be0| 65 74 20 66 69 76 65 20 | 69 6e 20 61 20 72 6f 77 |et five |in a row|
|00005bf0| 20 68 6f 72 69 7a 6f 6e | 74 61 6c 6c 79 2c 20 76 | horizon|tally, v|
|00005c00| 65 72 74 69 63 61 6c 6c | 79 2c 20 6f 72 20 64 69 |erticall|y, or di|
|00005c10| 61 67 6f 6e 61 6c 6c 79 | 20 77 69 6e 73 2e 20 46 |agonally| wins. F|
|00005c20| 69 67 75 72 65 20 32 20 | 73 68 6f 77 73 20 61 20 |igure 2 |shows a |
|00005c30| 73 68 6f 72 74 20 67 61 | 6d 65 20 6f 66 20 47 6f |short ga|me of Go|
|00005c40| 6d 6f 6b 75 20 77 6f 6e | 20 62 79 20 77 68 69 74 |moku won| by whit|
|00005c50| 65 20 28 61 20 72 65 61 | 6c 20 67 61 6d 65 20 77 |e (a rea|l game w|
|00005c60| 6f 75 6c 64 20 6f 66 20 | 63 6f 75 72 73 65 20 62 |ould of |course b|
|00005c70| 65 20 70 6c 61 79 65 64 | 20 6d 6f 72 65 20 64 65 |e played| more de|
|00005c80| 66 65 6e 73 69 76 65 6c | 79 20 74 68 61 6e 20 74 |fensivel|y than t|
|00005c90| 68 69 73 20 6f 6e 65 2c | 20 77 68 69 63 68 20 69 |his one,| which i|
|00005ca0| 73 20 66 6f 72 20 64 65 | 6d 6f 6e 73 74 72 61 74 |s for de|monstrat|
|00005cb0| 69 6f 6e 20 70 75 72 70 | 6f 73 65 73 20 6f 6e 6c |ion purp|oses onl|
|00005cc0| 79 29 2e 0d 46 69 67 75 | 72 65 20 32 0d 47 6f 6d |y)..Figu|re 2.Gom|
|00005cd0| 6f 6b 75 0d 47 6f 6d 6f | 6b 75 20 69 73 20 6d 6f |oku.Gomo|ku is mo|
|00005ce0| 72 65 20 63 68 61 6c 6c | 65 6e 67 69 6e 67 20 74 |re chall|enging t|
|00005cf0| 68 61 6e 20 54 69 63 2d | 74 61 63 2d 74 6f 65 2e |han Tic-|tac-toe.|
|00005d00| 20 54 68 65 20 6c 61 72 | 67 65 72 20 67 61 6d 65 | The lar|ger game|
|00005d10| 20 62 6f 61 72 64 20 61 | 6e 64 20 6c 6f 6e 67 65 | board a|nd longe|
|00005d20| 72 20 77 69 6e 6e 69 6e | 67 20 73 65 71 75 65 6e |r winnin|g sequen|
|00005d30| 63 65 20 6d 61 6b 65 20 | 66 6f 72 20 6d 61 6e 79 |ce make |for many|
|00005d40| 20 6d 6f 72 65 20 63 6f | 6d 62 69 6e 61 74 69 6f | more co|mbinatio|
|00005d50| 6e 73 2c 20 61 6e 64 20 | 74 68 65 20 67 61 6d 65 |ns, and |the game|
|00005d60| 20 76 69 72 74 75 61 6c | 6c 79 20 72 65 71 75 69 | virtual|ly requi|
|00005d70| 72 65 73 20 74 68 61 74 | 20 74 68 65 20 77 69 6e |res that| the win|
|00005d80| 6e 65 72 20 d2 73 6e 65 | 61 6b 20 75 70 d3 20 6f |ner .sne|ak up. o|
|00005d90| 6e 20 74 68 65 20 6c 6f | 73 65 72 2c 20 72 61 74 |n the lo|ser, rat|
|00005da0| 68 65 72 20 74 68 61 6e | 20 6a 75 73 74 20 67 6f |her than| just go|
|00005db0| 69 6e 67 20 66 6f 72 20 | 61 20 73 69 6d 70 6c 65 |ing for |a simple|
|00005dc0| 20 73 65 71 75 65 6e 63 | 65 20 6f 66 20 66 69 76 | sequenc|e of fiv|
|00005dd0| 65 20 70 69 65 63 65 73 | 2c 20 77 68 69 63 68 20 |e pieces|, which |
|00005de0| 74 68 65 20 6f 70 70 6f | 6e 65 6e 74 20 63 61 6e |the oppo|nent can|
|00005df0| 20 65 61 73 69 6c 79 20 | 64 65 74 65 63 74 20 61 | easily |detect a|
|00005e00| 6e 64 20 70 72 65 76 65 | 6e 74 2e 0d 54 61 70 42 |nd preve|nt..TapB|
|00005e10| 6f 61 72 64 d5 73 20 61 | 70 70 72 6f 61 63 68 20 |oard.s a|pproach |
|00005e20| 74 6f 20 66 69 6e 64 69 | 6e 67 20 61 20 67 6f 6f |to findi|ng a goo|
|00005e30| 64 20 47 6f 6d 6f 6b 75 | 20 6d 6f 76 65 20 69 6e |d Gomoku| move in|
|00005e40| 76 6f 6c 76 65 73 20 6d | 61 6b 69 6e 67 20 74 68 |volves m|aking th|
|00005e50| 72 65 65 20 70 61 73 73 | 65 73 20 6f 76 65 72 20 |ree pass|es over |
|00005e60| 74 68 65 20 62 6f 61 72 | 64 3a 20 74 68 65 20 66 |the boar|d: the f|
|00005e70| 69 72 73 74 20 6c 6f 6f | 6b 73 20 66 6f 72 20 77 |irst loo|ks for w|
|00005e80| 69 6e 6e 69 6e 67 20 6d | 6f 76 65 73 3b 20 74 68 |inning m|oves; th|
|00005e90| 65 20 73 65 63 6f 6e 64 | 20 6c 6f 6f 6b 73 20 66 |e second| looks f|
|00005ea0| 6f 72 20 73 69 74 75 61 | 74 69 6f 6e 73 20 77 68 |or situa|tions wh|
|00005eb0| 65 72 65 20 74 68 65 20 | 75 73 65 72 20 68 61 73 |ere the |user has|
|00005ec0| 20 74 68 72 65 65 20 6f | 72 20 6d 6f 72 65 20 69 | three o|r more i|
|00005ed0| 6e 20 61 20 72 6f 77 20 | 61 6e 64 20 74 72 69 65 |n a row |and trie|
|00005ee0| 73 20 74 6f 20 62 6c 6f | 63 6b 20 74 68 6f 73 65 |s to blo|ck those|
|00005ef0| 3b 20 74 68 65 20 74 68 | 69 72 64 20 6c 6f 6f 6b |; the th|ird look|
|00005f00| 73 20 66 6f 72 20 0d 73 | 69 74 75 61 74 69 6f 6e |s for .s|ituation|
|00005f10| 73 20 77 68 65 72 65 20 | 54 61 70 42 6f 61 72 64 |s where |TapBoard|
|00005f20| 20 68 61 73 20 74 68 72 | 65 65 20 6f 72 20 6d 6f | has thr|ee or mo|
|00005f30| 72 65 20 69 6e 20 61 20 | 72 6f 77 20 61 6e 64 20 |re in a |row and |
|00005f40| 74 72 69 65 73 20 74 6f | 20 61 64 64 20 74 6f 20 |tries to| add to |
|00005f50| 74 68 6f 73 65 2e 20 54 | 68 69 73 20 61 6c 67 6f |those. T|his algo|
|00005f60| 72 69 74 68 6d 20 70 6c | 61 79 73 20 61 20 64 65 |rithm pl|ays a de|
|00005f70| 66 65 6e 73 69 76 65 20 | 67 61 6d 65 20 74 68 61 |fensive |game tha|
|00005f80| 74 d5 73 20 68 61 72 64 | 20 74 6f 20 62 65 61 74 |t.s hard| to beat|
|00005f90| 2e 20 0d 52 45 56 45 52 | 53 49 0d 52 65 76 65 72 |. .REVER|SI.Rever|
|00005fa0| 73 69 20 69 73 20 61 6c | 73 6f 20 70 6c 61 79 65 |si is al|so playe|
|00005fb0| 64 20 6f 6e 20 61 6e 20 | 38 20 78 20 38 20 62 6f |d on an |8 x 8 bo|
|00005fc0| 61 72 64 2e 20 46 6f 75 | 72 20 70 69 65 63 65 73 |ard. Fou|r pieces|
|00005fd0| 20 61 72 65 20 70 6c 61 | 63 65 64 20 69 6e 20 74 | are pla|ced in t|
|00005fe0| 68 65 20 63 65 6e 74 65 | 72 20 6f 66 20 74 68 65 |he cente|r of the|
|00005ff0| 20 62 6f 61 72 64 20 61 | 73 20 73 68 6f 77 6e 20 | board a|s shown |
|00006000| 69 6e 20 46 69 67 75 72 | 65 20 33 41 2c 20 61 6e |in Figur|e 3A, an|
|00006010| 64 20 74 68 65 20 70 6c | 61 79 65 72 73 20 74 61 |d the pl|ayers ta|
|00006020| 6b 65 20 74 75 72 6e 73 | 20 70 6c 61 63 69 6e 67 |ke turns| placing|
|00006030| 20 70 69 65 63 65 73 2c | 20 74 72 79 69 6e 67 20 | pieces,| trying |
|00006040| 74 6f 20 74 72 61 70 20 | 74 68 65 20 6f 70 70 6f |to trap |the oppo|
|00006050| 6e 65 6e 74 d5 73 20 70 | 69 65 63 65 73 20 62 65 |nent.s p|ieces be|
|00006060| 74 77 65 65 6e 20 74 68 | 65 20 6e 65 77 20 70 69 |tween th|e new pi|
|00006070| 65 63 65 20 61 6e 64 20 | 61 6e 20 65 78 69 73 74 |ece and |an exist|
|00006080| 69 6e 67 20 6f 6e 65 20 | 68 6f 72 69 7a 6f 6e 74 |ing one |horizont|
|00006090| 61 6c 6c 79 2c 20 76 65 | 72 74 69 63 61 6c 6c 79 |ally, ve|rtically|
|000060a0| 2c 20 6f 72 20 64 69 61 | 67 6f 6e 61 6c 6c 79 2e |, or dia|gonally.|
|000060b0| 20 46 69 67 75 72 65 20 | 33 42 20 73 68 6f 77 73 | Figure |3B shows|
|000060c0| 20 6f 6e 65 20 6f 66 20 | 74 68 65 20 73 71 75 61 | one of |the squa|
|000060d0| 72 65 73 20 74 68 61 74 | 20 77 6f 75 6c 64 20 62 |res that| would b|
|000060e0| 65 20 61 20 6c 65 67 61 | 6c 20 66 69 72 73 74 20 |e a lega|l first |
|000060f0| 6d 6f 76 65 20 66 6f 72 | 20 77 68 69 74 65 2e 20 |move for| white. |
|00006100| 54 68 65 20 70 69 65 63 | 65 73 20 74 68 61 74 20 |The piec|es that |
|00006110| 61 72 65 20 d2 74 72 61 | 70 70 65 64 d3 20 63 68 |are .tra|pped. ch|
|00006120| 61 6e 67 65 20 63 6f 6c | 6f 72 2c 20 6f 72 20 72 |ange col|or, or r|
|00006130| 65 76 65 72 73 65 20 d1 | 20 68 65 6e 63 65 20 74 |everse .| hence t|
|00006140| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 67 |he name |of the g|
|00006150| 61 6d 65 2e 20 46 69 67 | 75 72 65 20 33 43 20 73 |ame. Fig|ure 3C s|
|00006160| 68 6f 77 73 20 74 68 65 | 20 72 65 73 75 6c 74 20 |hows the| result |
|00006170| 6f 66 20 74 68 65 20 6d | 6f 76 65 20 69 6e 20 33 |of the m|ove in 3|
|00006180| 42 2e 0d 46 69 67 75 72 | 65 20 33 0d 52 65 76 65 |B..Figur|e 3.Reve|
|00006190| 72 73 69 0d 50 6c 61 79 | 20 63 6f 6e 74 69 6e 75 |rsi.Play| continu|
|000061a0| 65 73 20 75 6e 74 69 6c | 20 6e 6f 20 6c 65 67 61 |es until| no lega|
|000061b0| 6c 20 6d 6f 76 65 73 20 | 61 72 65 20 6c 65 66 74 |l moves |are left|
|000061c0| 2e 20 54 68 65 20 70 6c | 61 79 65 72 20 77 69 74 |. The pl|ayer wit|
|000061d0| 68 20 74 68 65 20 6d 6f | 73 74 20 70 69 65 63 65 |h the mo|st piece|
|000061e0| 73 20 77 69 6e 73 2e 20 | 49 66 20 62 6f 74 68 20 |s wins. |If both |
|000061f0| 70 6c 61 79 65 72 73 20 | 68 61 76 65 20 74 68 65 |players |have the|
|00006200| 20 73 61 6d 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 | same nu|mber of |
|00006210| 70 69 65 63 65 73 2c 20 | 69 74 d5 73 20 61 20 74 |pieces, |it.s a t|
|00006220| 69 65 2e 20 42 65 63 61 | 75 73 65 20 6f 66 20 74 |ie. Beca|use of t|
|00006230| 68 65 20 72 65 76 65 72 | 73 69 6e 67 20 70 69 65 |he rever|sing pie|
|00006240| 63 65 73 2c 20 74 68 65 | 20 73 69 74 75 61 74 69 |ces, the| situati|
|00006250| 6f 6e 20 63 61 6e 20 63 | 68 61 6e 67 65 20 73 75 |on can c|hange su|
|00006260| 64 64 65 6e 6c 79 20 61 | 6e 64 20 64 72 61 6d 61 |ddenly a|nd drama|
|00006270| 74 69 63 61 6c 6c 79 2e | 20 4f 66 74 65 6e 20 6f |tically.| Often o|
|00006280| 6e 65 20 70 6c 61 79 65 | 72 20 6c 6f 6f 6b 73 20 |ne playe|r looks |
|00006290| 6c 69 6b 65 20 74 68 65 | 20 63 6c 65 61 72 20 77 |like the| clear w|
|000062a0| 69 6e 6e 65 72 20 75 6e | 74 69 6c 20 6e 65 61 72 |inner un|til near|
|000062b0| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 74 68 65 20 | the end| of the |
|000062c0| 67 61 6d 65 2c 20 77 68 | 65 6e 20 74 68 65 20 6f |game, wh|en the o|
|000062d0| 74 68 65 72 20 70 6c 61 | 79 65 72 20 73 75 64 64 |ther pla|yer sudd|
|000062e0| 65 6e 6c 79 20 73 75 72 | 67 65 73 20 61 68 65 61 |enly sur|ges ahea|
|000062f0| 64 20 61 6e 64 20 77 69 | 6e 73 2e 0d 54 61 70 42 |d and wi|ns..TapB|
|00006300| 6f 61 72 64 20 6c 6f 6f | 6b 73 20 66 6f 72 20 61 |oard loo|ks for a|
|00006310| 20 67 6f 6f 64 20 6d 6f | 76 65 20 69 6e 20 52 65 | good mo|ve in Re|
|00006320| 76 65 72 73 69 20 62 79 | 20 63 68 65 63 6b 69 6e |versi by| checkin|
|00006330| 67 20 65 76 65 72 79 20 | 70 6f 73 73 69 62 6c 65 |g every |possible|
|00006340| 20 6d 6f 76 65 2c 20 63 | 6f 75 6e 74 69 6e 67 20 | move, c|ounting |
|00006350| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 75 73 |the numb|er of us|
|00006360| 65 72 20 70 69 65 63 65 | 73 20 74 68 61 74 20 77 |er piece|s that w|
|00006370| 69 6c 6c 20 62 65 20 63 | 6f 6e 76 65 72 74 65 64 |ill be c|onverted|
|00006380| 2c 20 61 6e 64 20 74 68 | 65 6e 20 6d 6f 64 69 66 |, and th|en modif|
|00006390| 79 69 6e 67 20 74 68 65 | 20 63 6f 75 6e 74 73 20 |ying the| counts |
|000063a0| 62 61 73 65 64 20 6f 6e | 20 68 65 75 72 69 73 74 |based on| heurist|
|000063b0| 69 63 73 20 63 6f 6e 63 | 65 72 6e 69 6e 67 20 70 |ics conc|erning p|
|000063c0| 6c 61 79 73 20 61 6c 6f | 6e 67 20 74 68 65 20 65 |lays alo|ng the e|
|000063d0| 64 67 65 73 20 6f 66 20 | 74 68 65 20 62 6f 61 72 |dges of |the boar|
|000063e0| 64 2e 20 54 68 69 73 20 | 61 6c 67 6f 72 69 74 68 |d. This |algorith|
|000063f0| 6d 20 70 6c 61 79 73 20 | 74 68 65 20 67 61 6d 65 |m plays |the game|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.